Which Of The Following Function Is Valid For Creation Of New #104
Which of the following function is valid for creation of new data inside MongoDB Shell?
This multiple choice question (MCQ) is related to the book/course gs gs112 MongoDB. It can also be found in gs gs112 MongoDB CRUD Concepts and Operation - Generate Test Data - Quiz No.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
Similar question(s) are as followings:
Online Quizzes of gs112 MongoDB
GridFS, BSON Datatype and Administration Concepts - BSON - Quiz No.1
gs gs112 MongoDB
Online Quizzes