| 11. |
After starting the mongo shell, your session will use the ________ database by default.
|
||||||||
|
Answer:
Option (c) |
| 12. |
Which of the following operation is used to switch to a new database mydb?
|
||||||||
|
Answer:
Option (c) |
| 13. |
Which of the following method is used to query documents in collections?
|
||||||||
|
Answer:
Option (a) |
| 14. |
What is the maximum size of a MongoDB document?
|
||||||||
|
Answer:
Option (b) |
| 15. |
What is the equivalent command in MongoDB for the following SQL query?
SELECT * FROM posts WHERE author like "%john%"
|
||||||||
|
Answer:
Option (a) |
| 16. |
In MongoDB, _________ operations modify the data of a single collection.
|
||||||||
|
Answer:
Option (a) |
| 17. |
Which of the following method returns true if the cursor has documents?
|
||||||||
|
Answer:
Option (b) |
| 18. |
Which of the following method is called while accessing documents using the array index notation?
|
||||||||
|
Answer:
Option (b) |
| 19. |
Which of the following method returns one document?
|
||||||||
|
Answer:
Option (a) |
| 20. |
The ________ message is used to update a document in a collection.
|
||||||||
|
Answer:
Option (b) |