monga db ASSIGNMENT
monga db ASSIGNMENT
1. What is MongoDB?
2. How is MongoDB different from a traditional relational database
(RDBMS)?
3. What is a document in MongoDB? What is a collection in MongoDB?
4. What is a database in MongoDB?
5. How does MongoDB store data?
6. What is the difference between MongoDB and SQL?
7. Can you explain what BSON is?
8. What are the main features of MongoDB?
9. What kind of data types does MongoDB support
10.How do you create a database in MongoDB?
11.How do you create a collection in MongoDB?
12.What is the syntax to insert a document into a collection?
13.How do you view all the databases in MongoDB?
14.How do you switch between databases in MongoDB?
15.How do you delete a collection in MongoDB?
16.What is the purpose of the show collections command?
17.How do you remove a database in MongoDB?
18.What does CRUD stand for in MongoDB?
19.How do you insert a single document in MongoDB?
20.How do you insert multiple documents at once in MongoDB?
21.How do you update a document in MongoDB?
22.What is the difference between updateOne() and updateMany()?
23.How do you delete a document from a collection?
24.What is the difference between deleteOne() and deleteMany()?
25.How do you retrieve data from a collection using the find() method?
26.What is the difference between find() and findOne() in MongoDB?
27.What are query operators in MongoDB?
28.Can you explain the $gt and $lt operators?
29.What is the $in operator used for?
30.How would you use the $and operator in a query?
31.What is the purpose of the $or operator in MongoDB queries?
32.What is the difference between insertOne() and insertMany() in
MongoDB?
33.Can you explain how MongoDB handles duplicate _id values during
insertion?
34.What happens if you insert a document without specifying the _id field?
35.How do you insert a document with a specific _id value in MongoDB?