MCQOPTIONS
Saved Bookmarks
This section includes 10 Mcqs, each offering curated multiple-choice questions to sharpen your Technical MCQs knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
If you created database (mydb) is not present in list. To display database, you need to insert at least one document into it. |
| A. | Yes |
| B. | No |
| C. | Can be yes or no |
| D. | Can not say |
| E. | |
| Answer» B. No | |
| 2. |
What will be mongodb output when we use "use mydb" command? |
| A. | created db mydb |
| B. | new db mydb |
| C. | switched to db mydb |
| D. | None of the above |
| Answer» D. None of the above | |
| 3. |
How many database present after mondb installation? |
| A. | 1 |
| B. | 2 |
| C. | 3 |
| D. | 4 |
| Answer» C. 3 | |
| 4. |
Does we need to use "use database_name" before dropping database? |
| A. | Yes |
| B. | No |
| C. | Can be yes or no |
| D. | Can not say |
| Answer» B. No | |
| 5. |
If you have not selected any database, then it will delete _________ database. |
| A. | local |
| B. | mydb |
| C. | temp |
| D. | test |
| Answer» E. | |
| 6. |
MongoDB ___________ command is used to drop a existing database. |
| A. | db.drop() |
| B. | db.dropDatabase() |
| C. | db.deleteDatabase() |
| D. | db.delete() |
| Answer» C. db.deleteDatabase() | |
| 7. |
If you didn't create any database, then collections will be stored in _______ database. |
| A. | local |
| B. | mydb |
| C. | temp |
| D. | test |
| Answer» E. | |
| 8. |
In MongoDB default database is ________. |
| A. | local |
| B. | mydb |
| C. | test |
| D. | temp |
| Answer» D. temp | |
| 9. |
use database_name command will create a new database if it doesn't exist, otherwise it will return the existing database. |
| A. | Yes |
| B. | No |
| C. | Can be yes or no |
| D. | Can not say |
| Answer» B. No | |
| 10. |
MongoDB ______ is used to create database. |
| A. | create database_name |
| B. | use database_name |
| C. | insert database_name |
| D. | show database_name |
| Answer» C. insert database_name | |