Question 1
Which of the following is NOT a type of NoSQL database?
- Document-based
- Key-Value
- Graph-based
- Relational
- SQL-based
Question 2
What format does MongoDB use to store data?
- XML
- BSON
- CSV
- JSON
- TXT
Question 3
Which of the following commands is used to check the list of databases in MongoDB shell?
- show databases
- list dbs
- display databases
- db.list()
- see databases
Question 4
What is the default port for MongoDB server?
- 27017
- 8080
- 5432
- 3306
- 27018
Question 5
In MongoDB, what is the equivalent of a 'table' in relational databases?
- Field
- Document
- Collection
- Index
- Record
Question 6
How can you install MongoDB on Windows?
- Using pip install mongodb
- Using MongoDB MSI Installer
- Running npm install mongodb
- Installing via apt-get install mongodb
- Using yum install mongodb
Question 7
Which MongoDB tool provides a graphical interface for managing databases?
- MongoDB Shell
- MongoDB Compass
- MongoDB CLI
- MongoDB Studio
- MongoVue
Question 8
What is the purpose of an ObjectId in MongoDB?
- It ensures unique identifiers for documents
- It acts as a primary key in collections
- It contains timestamp information
- All of the above
- It is used for indexing
Question 9
What is the primary function of MongoDB Atlas?
- To provide a cloud-based MongoDB database service
- To visualize query execution plans
- To act as an alternative to MongoDB Compass
- To perform offline backups of local databases
- To store data locally
Question 10
What is BSON in MongoDB?
- A text-based format similar to JSON
- A relational database format
- A binary representation of JSON
- A compressed SQL format
- A new form of SQL
Question 11
Which command is used to insert a single document into a MongoDB collection?
- db.collection.insertOne()
- db.collection.insert()
- db.collection.add()
- db.collection.create()
- db.collection.save()
Question 12
What is the purpose of indexing in MongoDB?
- To improve query performance
- To reduce storage space
- To ensure data integrity
- To encrypt data
- To improve insert performance
Question 13
Which operator is used to find documents where a field equals a specific value?
- $eq
- $gt
- $lt
- $ne
- $in
Question 14
What does CRUD stand for in the context of database operations?
- Create, Read, Update, Delete
- Compile, Run, Update, Delete
- Create, Rename, Update, Deploy
- Calculate, Report, Update, Distribute
- Copy, Restore, Update, Destroy
Question 15
Which command is used to remove a collection from a MongoDB database?
- db.collection.drop()
- db.collection.delete()
- db.collection.remove()
- db.collection.erase()
- db.collection.discard()