Question 1
What is the purpose of insert operations in MongoDB?
Delete documents
Update documents
Add documents
Retrieve documents
Question 2
Which method is used to insert a single document?
insertMany()
insertOne()
addOne()
createOne()
Question 3
Which method is used to insert multiple documents?
insertAll()
insertBulk()
insertMany()
insertMultiple()
Question 4
What does insertMany() return?
Boolean value
Number of documents
Inserted document IDs
Cursor
Question 5
What happens if you use insertOne() without specifying _id?
Error occurs
Document is rejected
MongoDB automatically generates _id
Document is ignored
Question 6
Which method was used earlier but is now deprecated in MongoDB?
insert()
insertOne()
insertMany()
add()
Question 7
What type of data does insertMany() accept?
Single object
Array of documents
String
Number
Question 8
Can insertOne() insert multiple documents?
Yes
No
Sometimes
Only in bulk mode
Question 9
What happens if one document fails in insertMany() (ordered=true)?
All documents are inserted
Operation stops at failure
It retries automatically
It ignores errors
Question 10
Which option improves performance for bulk inserts?
insertOne()
insertMany()
find()
updateOne()
There are 10 questions to complete.