Big Data Analytics (2180710) MCQs

MCQs of Data Base for the Modern Web

Showing 11 to 20 out of 27 Questions
11.
After starting the mongo shell, your session will use the ________ database by default.
(a) mongo
(b) master
(c) test
(d) primary
Answer:

Option (c)

12.
Which of the following operation is used to switch to a new database mydb?
(a) use dbs
(b) use db
(c) use mydb
(d) use mydbs
Answer:

Option (c)

13.
Which of the following method is used to query documents in collections?
(a) find
(b) move
(c) shell
(d) replace
Answer:

Option (a)

14.
What is the maximum size of a MongoDB document?
(a) 2 MB
(b) 16 MB
(c) 12 MB
(d) There is no maximum size. It depends on the RAM.
Answer:

Option (b)

15.
What is the equivalent command in MongoDB for the following SQL query? SELECT * FROM posts WHERE author like "%john%"
(a) db.posts.find( { author: /john/ } )
(b) db.posts.find( { author: {$like: /john/} } )
(c) db.posts.find( { $like: {author: /john/} } )
(d) db.posts.find( { author: /^john^/ } )
Answer:

Option (a)

16.
In MongoDB, _________ operations modify the data of a single collection.
(a) CRUD
(b) GRID
(c) READ
(d) All of the mentioned
Answer:

Option (a)

17.
Which of the following method returns true if the cursor has documents?
(a) hasMethod()
(b) hasNext()
(c) hasDoc()
(d) All of the mentioned
Answer:

Option (b)

18.
Which of the following method is called while accessing documents using the array index notation?
(a) cur.toArray()
(b) cursor.toArray()
(c) doc.toArray()
(d) All of the mentioned
Answer:

Option (b)

19.
Which of the following method returns one document?
(a) findOne()
(b) findOne1()
(c) selectOne()
(d) All of the mentioned
Answer:

Option (a)

20.
The ________ message is used to update a document in a collection.
(a) UPDATE
(b) OP_UPDATE
(c) OP_UPDATES
(d) All of the mentioned
Answer:

Option (b)

Showing 11 to 20 out of 27 Questions