MongoDB/MongoDB Mcq Question Set 3 MCQs :- multiple choice questions and answers. e.g MongoDB MCQS,MongoDB Mock Tests , MongoDB Practice Papers ,MongoDB Sample Test,MongoDB Sample questions

Your Session ID :-Guest5414659

Question 1: Which of the following function is valid for creation of new data inside MongoDB Shell?

function insertData(dbName, colName, num) { var col = db.getSiblingDB(dbName).getCollection(colName); for (i = 0; i < num; i++) { col.insertData({x:i}); } print(col.count()); }

function insertData(dbName, colName, num) { var col = db.getSiblingDB(dbName).getCollection(colName); for (i = 0; i < num; i++) { col.insert({x:i}); } print(col.count()); }

insertData(dbName, colName, num) { var col = db.getSiblingDB(dbName).getCollection(colName); for (i = 0; i < num; i++) { col.insert({x:i}); } print(col.count()); }

None of the mentioned

Total MCQS Questions are 50 in this paper MongoDB Mcq Question Set 3