Crowdly
Add to Chrome
Questions Bank (1386834 total)
Which method is used to update an existing document in MongoDB?
updateOne()
100%
findOne()
0%
insertOne()
0%
deleteMany()
0%
View this question
In MongoDB, a document is created using the insertOne() or insertMany() methods.
True
100%
False
0%
View this question
Which MongoDB method removes a specific document from a collection?
updateMany()
0%
findOne()
0%
insertOne()
0%
deleteOne()
100%
View this question
Which MongoDB method is used to delete multiple documents at once?
updateOne()
0%
findOne()
0%
insertOne()
0%
deleteMany()
0%
View this question
The deleteMany() method in MongoDB removes only the first matching document.
True
0%
False
100%
View this question
Which MongoDB method is used to retrieve a single document from a collection?
updateOne()
0%
findOne()
0%
insertOne()
0%
deleteOne()
0%
View this question
The updateOne() method in MongoDB can update multiple documents at once.
True
0%
False
100%
View this question
Which method is used to insert a document into a MongoDB collection?
updateOne()
0%
findOne()
0%
insertOne()
0%
deleteOne()
0%
View this question
person = {'name': 'Ramesh', 'age': 22, 'gender': 'Male'}
person.get('age')
Choose...
person.get('name')
Choose...
person.get('salary')
Choose...
person.get('salary',20)
Choose...
View this question
What is the output of the following program?
tuple1, tuple2 = (123,'xyz'),(456,'abc')
print cmp(tuple2,tuple1)
-1
0%
52
0%
0
0%
1
100%
View this question
Previous
1
More pages
135241
135242
135243
135244
135245
More pages
138684
Next
Telegram
Instagram
TikTok
Question Bank
Terms of Use
Contact Us
Add to Chrome