This Quiz contains totally 25 Questions each carry 1 point for you.
1. What does MongoDB's data model primarily consist of?
Tables and Rows
Dictionaries and Lists
Collections and Documents
Nodes and Relationships
Correct!
Wrong!
2. What are collections in MongoDB similar to?
Tables in SQL
Rows in SQL
Columns in SQL
Index in SQL
Correct!
Wrong!
3. In MongoDB, a document is composed of what?
Tables
Field-value pairs
Indexes
Nodes
Correct!
Wrong!
4. Which of the following is a valid MongoDB document?
{ "name" : "John", "age" : 30, "city" : "New York" }
{ "name" : "John", "age" : "New York" }
{ "name", "John", "age", 30, "city", "New York" }
{ name : "John", age : 30, city : "New York" }
Correct!
Wrong!
5. Which operation in CRUD refers to making new data in MongoDB?
Read
Update
Delete
Create
Correct!
Wrong!
6. Which operation in CRUD refers to modifying existing data in MongoDB?
Read
Update
Delete
Create
Correct!
Wrong!
7. In MongoDB, how would you delete a document from a collection?
Use the $delete operator
Use the $remove operator
Use the db.collection.deleteOne() or db.collection.deleteMany() methods
Use the db.collection.drop() method
Correct!
Wrong!
8. What does the $set operator do in MongoDB?
It removes a field from a document
It updates the value of a field in a document
It increases the value of a field in a document
It creates a new document
Correct!
Wrong!
9. What does the $inc operator do in MongoDB?
It includes a field in a document
It increments the value of a field in a document
It increases the size of the collection
It inserts a new document into the collection
Correct!
Wrong!
10. Which of these is a valid data type in MongoDB?
Double
Point
Polygon
MultiPolygon
Correct!
Wrong!
11. In MongoDB, which operator would you use to modify an existing document?
$modify
$update
$set
$change
Correct!
Wrong!
12. Which of the following is a valid data type in MongoDB?
Text
VarChar
ObjectId
Character
Correct!
Wrong!
13. How can you create a new document in MongoDB?
db.collection.insertOne()
db.collection.updateOne()
db.collection.removeOne()
db.collection.find()
Correct!
Wrong!
14. What method can be used to read data from a MongoDB collection?
db.collection.updateOne()
db.collection.insertOne()
db.collection.find()
db.collection.deleteOne()
Correct!
Wrong!
15. What is a primary feature of MongoDB?
Relational Database
Document-oriented NoSQL Database
Graph Database
Time-Series Database
Correct!
Wrong!
16. What is the default primary key field in MongoDB for a document?
id
key
_id
primary_id
Correct!
Wrong!
17. How does MongoDB store data?
In Tables
In Graphs
In BSON (Binary JSON)
In Flat Files
Correct!
Wrong!
18. What does CRUD stand for in MongoDB?
Create, Repeat, Update, Delete
Create, Read, Update, Delete
Call, Read, Update, Drop
Create, Refer, Update, Delete
Correct!
Wrong!
19. In MongoDB, what does a document's _id field represent?
The document's creation date
The document's primary key
The document's file size
The document's location in memory
Correct!
Wrong!
20. Which operator would you use to add new fields to documents in MongoDB?
$add
$new
$set
$append
Correct!
Wrong!
21. In MongoDB, how would you delete a collection?
Use the $delete operator
Use the $remove operator
Use the db.collection.deleteOne() or db.collection.deleteMany() methods
Use the db.collection.drop() method
Correct!
Wrong!
22. What does the $push operator do in MongoDB?
It adds a new value to an array field in a document
It updates the value of a field in a document
It increases the value of a field in a document
It creates a new document
Correct!
Wrong!
23. What is BSON in MongoDB?
Binary Secure Object Notation
Binary System Object Notation
Binary Structured Object Notation
Binary JSON
Correct!
Wrong!
24. What is the maximum document size in MongoDB?
4MB
16MB
32MB
64MB
Correct!
Wrong!
25. Which operator is used in MongoDB to specify conditions for a query?
$find
$get
$query
$match
Correct!
Wrong!
Share the quiz to show your results !
Subscribe to see your results
Ignore & go to results
Basics of MongoDB – Quiz
You got %%score%% of %%total%% right
%%description%%
%%description%%
Loading...