Question : 1 Which of the following is true about MongoDB?
MongoDB is a relational database management system (RDBMS).
MongoDB stores data in tables.
MongoDB uses SQL as its query language.
MongoDB stores data in JSON-like documents.
Question : 2 What is the primary database model used by MongoDB?
Relational Model
Document Model
Hierarchical Model
Network Model
Question : 3 Which of the following statements is true about collections in MongoDB?
Collections in MongoDB are similar to tables in relational databases.
Collections in MongoDB store data in key-value pairs.
Collections in MongoDB can only store a single document.
Collections in MongoDB use a fixed schema.
Question : 4 What is the purpose of the "_id" field in MongoDB documents?
To specify the data type of the document.
To store the creation date of the document.
To uniquely identify each document in a collection.
To define the primary key of the document.
Question : 5 Which of the following is NOT a data type supported by MongoDB?
String
Integer
Array
Date Object
Question : 6 Which of the following is true about BSON in MongoDB?
BSON stands for Binary Serialized Object Notation.
BSON is a binary representation of JSON-like documents used in MongoDB.
BSON is a query language for MongoDB.
BSON is used to define schema in MongoDB.
Question : 7 Which command is used to start the MongoDB server?
mongo
mongod
start mongod
run mongod
Question : 8 What is the default port number for MongoDB?
27017
3306
5432
8080
Question : 9 Which of the following is NOT a valid command in the MongoDB shell?
show dbs
use databaseName
create collectionName
insert documentName
Question : 10 Which command is used to create a new database in MongoDB?
create databaseName
use databaseName
db.createDatabase(databaseName)
db.databaseName.insert(document)
Question : 11 Which MongoDB method is used to query documents in a collection?
find()
query()
select()
search()
Question : 12 Which operator is used for equality comparison in MongoDB queries?
=
==
===
$eq
Question : 13 What is the purpose of the "limit" method in MongoDB queries?
To limit the number of documents returned by the query.
To sort the documents returned by the query.
To skip a specified number of documents in the query result.
To perform a case-insensitive search.
Question : 14 Which MongoDB method is used to update documents in a collection?
update()
modify()
save()
updateOne()
Question : 15 What is the purpose of the "sort" method in MongoDB queries?
To limit the number of documents returned by the query.
To skip a specified number of documents in the query result.
To perform a case-insensitive search.
To sort the documents returned by the query.
Question : 16 Which MongoDB method is used to delete documents from a collection?
remove()
delete()
deleteOne()
deleteMany()
Question : 17 What is the purpose of the "projection" parameter in MongoDB queries?
To specify the criteria for document selection.
To specify the fields to return in the query result.
To limit the number of documents returned by the query.
To sort the documents returned by the query.
Question : 18 Which MongoDB method is used to create an index on a collection?
createIndex()
index()
addIndex()
createIndexOne()
Question : 19 What is the purpose of indexing in MongoDB?
To sort documents in a collection.
To reduce the size of the database.
To improve the performance of queries by allowing faster access to data.
To compress data stored in the database.
Question : 20 Which MongoDB method is used to aggregate data from a collection?
aggregate()
group()
merge()
aggregate()
Question : 21 What is the purpose of the "pipeline" parameter in MongoDB aggregation?
To specify the criteria for document selection.
To specify the fields to return in the query result.
To define a sequence of data processing operations to be applied to the documents.
To sort the documents returned by the query.
Question : 22 Which MongoDB method is used to create a backup of a database?
backup()
dump()
snapshot()
mongodump()
Question : 23 What is the purpose of the "mongorestore" command in MongoDB?
To restore a backup of a database.
To create a backup of a database.
To drop a database.
To check the status of a database.
Question : 24 Which MongoDB method is used to retrieve metadata about the database server?
serverInfo()
serverMetadata()
dbStats()
isMaster()
Question : 25 What is the purpose of the "mongostat" command in MongoDB?
To view the status of a MongoDB instance.
To view the content of a database.
To perform statistical analysis on data stored in MongoDB.
To monitor the performance of a MongoDB instance.