Google News
logo
MongoDB - Quiz(MCQ)
Which of the following statement will insert 400 documents in to the testData collection?
A)
insertData("test", "testData", 400)
B)
insertData("test", "testData", 600)
C)
insertData("test", "testData", 200)
D)
All of the above

Correct Answer :   insertData("test", "testData", 400)


Explanation : If the collection and database do not exist, MongoDB creates them implicitly before inserting documents.

Advertisement