MongoDB Quiz


Play this quiz that will help you to excel in MongoDB certification exams, placements etc. This MongoDB quiz consist of 10 questions that you need to solve in 10 minutes. We’ve specially designed this quiz so that you can quickly acquaint to the pattern of questions you can be asked in placement drives, certification exams etc. This test enables you to assess your knowledge of MongoDB.

Take the Free Practice Test



MongoDB MCQs

Practice MongoDB MCQ Questions, which will help you to understand database related concepts.

MongoDB Quiz

Try Free MongoDB Quiz, to start a quiz you need to login first, after login you will get start quiz button and then by clicking on that you can start quiz. You will get 10 Minutes to answer all questions.

MongoDB Quiz

1. Which of the following statement is correct with respect to mongoDB?

MongoDB is a NoSQL Database
MongoDB used XML over JSON for data exchange
MongoDB is not scalable
All of the above

2. The basic syntax of insert() command is?

db.insertCOLLECTION_NAME(document)
db.COLLECTION_NAME.insert(document)
COLLECTION_NAME.insert(document)
db.COLLECTION_NAME.create(document)

3. Which of the following provides information on the MongoDB instance?

serverInfo
queryPlanner
executeStats
None of the above

4. Which of the following iis correct syntax of createindex?

db.COLLECTION_NAME.createIndex({KEY:1})
COLLECTION_NAME.createIndex({KEY:1})
db.COLLECTION_NAME.createIndex
db.createIndex({KEY:1})

5. Size specifies a maximum size in bytes for a capped collection.

Yes
No
Can be yes or no
Can not say

6. GridFS is useful only for storing files that exceed 16MB

TRUE
FALSE
Can be true or false
Can not say

7. MongoDB ___________ command is used to drop a existing database.

db.drop()
db.dropDatabase()
db.deleteDatabase()
db.delete()

8. _________ returns the queryPlanner and executionStats information for the evaluated method.

cursor.explain()
tablescan.explain()
server.explain()
client.explain()

9. Type of optional field capped is?

String
Document
Number
Boolean

10. What is true about $unwind stages in aggregation framework ?

It is used to unwind document that are using arrays.
When using an array, the data is kind of pre-joined and this operation will be undone with this to have individual documents again. 
This stage we will increase the amount of documents for the next stage.
All of the above

Results