下列不合法的变量名为()。
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
举一反三
- 已知类名为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"]
- 下列声明结构体变量错误的是( ) A: A.struct student { int no; char name[16]; }st1,st2; B: B. struct student{ int no;char name[16];};struct student st1,st2; C: C.struct student { int no; char name[16]; }; struct st1,st2; D: D.struct student{ int no;char name[16]; };student st1,st2;