Home »
MCQs »
MongoDB MCQs
Database_name is a MongoDB command is used for ___
28. Database_name is a MongoDB command is used for ___.
- Database Creation
- Dropping Databases
- Creating a Collection
- All of the mentioned above
Answer: A) Database Creation
Explanation:
MongoDB does not have any methods for creating databases. When you save values into the defined collection for the first time, it automatically creates a database in the background. Database name is a MongoDB command that is used for the creation of databases. If a database with the name 'database name' does not already exist, this will create one. If it does exist, it will be chosen for further consideration.