

MCQOPTIONS
Saved Bookmarks
This section includes 8 Mcqs, each offering curated multiple-choice questions to sharpen your Mongodb knowledge and support exam preparation. Choose a topic below to get started.
1. |
Which of the following method is used to query documents in collections? |
A. | find |
B. | move |
C. | shell |
D. | replace |
Answer» B. move | |
2. |
Command to check existence of collection is _____________ |
A. | show collection |
B. | show collections |
C. | show collect |
D. | none of the mentioned |
Answer» C. show collect | |
3. |
Which of the following also returns a list of databases? |
A. | show databases |
B. | show database |
C. | display dbs |
D. | all of the mentioned |
Answer» B. show database | |
4. |
Which of the following operation is used to switch to new database mydb? |
A. | use dbs |
B. | use db |
C. | use mydb |
D. | use mydbs |
Answer» D. use mydbs | |
5. |
___________ command display the list of databases. |
A. | show db |
B. | show dbs |
C. | show data |
D. | display dbs |
Answer» C. show data | |
6. |
After starting the mongo shell, your session will use the ________ database by default. |
A. | mongo |
B. | master |
C. | test |
D. | primary |
Answer» D. primary | |
7. |
mongo looks for a database server listening on port 27017 on the ________ interface. |
A. | web |
B. | localhost |
C. | web host |
D. | all of the mentioned |
Answer» C. web host | |
8. |
__________ is a part of the standard MongoDB distribution and provides a full JavaScript environment. |
A. | mongod |
B. | mongodb |
C. | mongo |
D. | none of the mentioned |
Answer» D. none of the mentioned | |