下列不合法的变量名为()。
A: -student
B: %student
C: 12name
D: student
E: _student
F: student_nameG、student0
A: -student
B: %student
C: 12name
D: student
E: _student
F: student_nameG、student0
举一反三
- 下列不合法的变量名为( )。 A: -student B: %student C: 12name D: student E: _student F: student_name G: student0
- 已知类名为Student,下面构造方法定义的有哪些? A: Student( ) B: Student(String name) C: void student() D: void input()
- 在python语言中,以下变量合法的是( )。 A: if B: student$ C: Student D: %student
- Student类中存在String类型name属性,下列Student类的构造方法中,哪个是正确的? A: Student(String name){} B: Student(String name) C: Student(name)() D: NewStudent (String name){}
- 下面哪一个是JSON数据?() A: {name:"xiaoming",age,"student"} B: {"name":"xiaoming","age":"student"} C: {"xiaoming","student"} D: ["xiaoming","student"]