• 2022-05-29
    下列JSON格式正确的是:
    A: '{"name",1,}'
    B: '{"name",1},'
    C: '[1,2,3,4,5,]'
    D: '12,'
    E: {a:1,b:2}
    F: " 'a:1,b:2' "
    G: '{"name":}'
    H: '{"name":"ivan"}'
  • A

    内容

    • 0

      下列不可以作为变量名的有? A: False=1 B: a=1 C: 16cloud=10 D: class=cloud161 E: x=y=1 F: import=name G: name="cui"

    • 1

      有如下定义‏struct person{char name[9];int age;};‏struct person class[10]={"John",17,"paul",19,"Mary",18,"Adam",16,};‏则能输出字母M的语句是( )。‏​‏ A: cout<<class[3].name; B: cout<<class[3].name[1]; C: cout<<class[2].name[1]; D: cout<<class[2].name[0];

    • 2

      根据下述定义,能输出字母M的语句是:strcut person{char name&#91;9&#93;;int age;};struct person class&#91;10&#93;={"John",17,"Paul",19,"Mary",18,"Adam",16}; A: class[3].name B: class[2].name[0] C: class[3].name[1] D: class[2].name[1]

    • 3

      下列关于匿名类正确的是()。 A: Listlist=new{Id=1,Name="张三"}; B: varstu=newStudent{Id=1,Name="张三"}; C: varstu=new{Id=1,Name="张三"}; D: publicclassvar{}varstu=new{Id=1,Name="张三"};

    • 4

      根据下列的定义,能打印出字母P的语句是( ) struct stu char name&#91;10&#93;; int age; ; stmct stu s&#91;10&#93;="John",11, "Paul",12, "Mary",11, "adam",12 : A: printf("%c",s[3].name); B: printf("%c",s[3].name[1]); C: printf("%c",s[2].name[11]); D: printf("%c",s[1].name[0]);