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. How to create index in mongoDB?

index()
createIndex()
putIndex()
getIndex()

2. use database_name command will create a new database if it doesn't exist, otherwise it will return the existing database.

Yes
No
Can be yes or no
Can not say

3. Does we need to use "use database_name" before dropping database?

Yes
No
Can be yes or no
Can not say

4. Which of the following is not a feature for NoSQL databases?

Data can be easily held across multiple servers
Relational Data
Scalability
Faster data access than SQL databases

5. In production enviroment , how many sharded clusters have?

2
3
4
5

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

7. What is the type of weights parameter in createIndex()?

Boolean
string
integer
document

8. Which method returns the description of all the indexes int the collection?

putIndexes()
setIndexes()
getIndexes()
All of the above

9. If you have not selected any database, then it will delete _________ database.

local
mydb
temp
test

10. _id is ________ bytes hexadecimal number unique for every document in a collection.

4
8
10
12

Results