下列是正确的Json格式对象的选项是: ( )
A: [name:”James”, age:18]
B: [name=”James”, age=18]
C: {name=”James”, age=18}
D: {“name”:”James”, “age”:18}
A: [name:”James”, age:18]
B: [name=”James”, age=18]
C: {name=”James”, age=18}
D: {“name”:”James”, “age”:18}
举一反三
- 下列Json格式对象正确的是 A: { name:"lin",age:19} B: { name="lin",age=19} C: { name:"lin";age:19} D: { name="lin";age=19}
- 下列( )方法定义和调用的代码是正确的。 A: static void Introduce(string gender = "男", string name, int age = 18){} Introduce(name: "alex", age: 20); B: static void Introduce(string name, int age = 18, string gender = "男"){} Introduce(age: 20, name: "alex"); C: static void Introduce(string gender = "男", string name, int ago = 18){} Introduce(age: 20, name: "alex"); D: static void Introduce(string name, int age = 18, string gender = "男"){}Introduce(name: "alex", age: 20);
- 下列示例中,用于更新文档中内容的是( ) A: column.update_one({ "name": "Json" },{ "$set": { "alexa": "123" } } B: column.update_many({ "name": { "$regex": "^F" } },{ "$set": { "alexa": "123" } }) C: result=column.find_one({"age":18}) D: result=column.insert_one({"age":18,"name":"Json"})
- 下列选项中,可以作为JSON中的对象的是()。 A: "name": "Jane" B: {18} C: { "age":18} D: ["Python", "Java"]
- 设有关系表S(NO,NAME,AGE),其中AGE为年龄字段,则表达式AGE NOT BETWEEN 18 AND 24等价于() A: AGE<=18 OR AGE>=24 B: AGE<=18 0R AGE>24 C: AGE<18 OR AGE>=24 D: AGE<18 0R AGE>24