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 method deletes multiple (specified) indexes on a collection?

dropIndexes()
dropIndex()
Both A and B can be used
getIndexes()

2. If you created database (mydb) is not present in list. To display database, you need to insert at least one document into it.

Yes
No
Can be yes or no
Can not say

3. Which of the following true about mongoDB?

MongoDB is a cross-platform
MongoDB is a document oriented database
MongoDB provides high performance
All of the above

4. The default value of default_language Parameter is :

Mongo
DB
Mongod
English

5. Min/ Max keys type is used to compare a value against the _____ BSON elements.

lowest
highest
lowest and highest
All of the above

6. 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)

7. If MongoDB can use an index scan to obtain the requested sort order, the result will not include a SORT stage

TRUE
FALSE
Can be true or false
Can not say

8. What will be mongodb output when we use "use mydb" command?

created db mydb
new db mydb
switched to db mydb
None of the above

9. The system generated _id field is?

A 12 byte hexadecimal value
A 16 byte octal value
A 12 byte decimal value
A 10 bytes binary value

10. In MongoDB default database is ________.

local
mydb
test
temp

Results