Question: 11. Which of the following python mongodb statements is correct? a) db.people.insert_one( { ssn:None,age:20, start_date:datetime.datetime (1999,12,30)}) b) db.people.insert_one({name:Ali,age:20, start_date.new Date(2014-0301T08:00:00Z')}) c) db.people.insert_one( { ssn':Null,manager-True,name.-Ali })

 11. Which of the following python mongodb statements is correct? a)

11. Which of the following python mongodb statements is correct? a) db.people.insert_one( { "ssn":None,"age":20, start_date":datetime.datetime (1999,12,30)}) b) db.people.insert_one(\{"name":"Ali","age":20, "start_date".new Date("2014-0301T08:00:00Z"')\}) c) db.people.insert_one( { "ssn"':Null,"manager"-True,"name".-"Ali" }) d) None of the above 12. { "day": { \$gte:14, \$lte:16\} } Which of the following statements is represented by the above mongodb filter? a) day >14 and day c=16 b) day >=14 and day =14 and day c=16 d) None of the above 13. Which of the following python mongodb statements is correct? a) db.sales.insert_many(\{"_id": 101, "item": "abc", "price":: 10 , "quantity": 2},{ "_id": 103, "item": "xyz", "price": 5, "quantity": 10}) b) db.sales.insert_many([ \{" id": 101, "item": "abc", "price": 10 , "quantity": 2},{ "_id": 102, "item": "jkl", "price": 20 , "quantity": 1 \} ]) c) db.sales.insertMany( [\{"_id": 101, "item": "abc", "price": 10, "quantity": 2}]) d) None of the above 14. { \$or: [\{"day": { Sgt:12, Slte:15 }},{ "hour":56.5 }]} Which of the following statements is represented by the above mongodb filter? a) day =15 and day =12 or hour =56.5 b) ( day c=15 and day >12 ) or hour =56.5 c) day =15 or day >12 or hour =56.5 d) None of the above 15. Which of the following python mongodb statements is correct? a) db.sales.insert_many([\{"_id": 101, "item": "abc", "price": 10 , "quantity": 2},{ "_id": 101, "item": "jkl", "price": 20 , "quantity": 1}]) b) db.sales.insert_many( ( "_id": 102, "item": "jkl", "price": 20 , "quantity": 1}) c) db.sales.insert_one([\{"_id": 101, "item": "abc", "price": 10, "quantity": 2}]) d) None of the above 16. { \$and: [\{"dno":\{\$not: { Seq:8 }}},{ 'month":\{Snin: [5,9,10]}},{ "gender":"'F" }]} Which of the following statements is represented by the above mongodb filter? a) dno !=8 and month is not in {5,9,10} and gender =F b) dno !=8 and month is in {5,9,10} and gender =F c) dno =8 and month is not in {5,9,10} and gender =F d) None of the above 17. Which of the following python mongodb statements is correct? a) db.sales.updateMany ( { "_id":\{"\$ne":13\} },{ "\$set" : \{"join_date" : new Date () }}) b) db.sales.updateMany ({" id": {"$ ne": :13}},{ "\$set" : { "join_date" : datetime.datetime now 0}} ) c) db.sales.update_many ( {" id"::\{"Sne"::13 },{ "Sset" : { "join_date" : datetime.datetime now 0}}) d) None of the above

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!