1. __________ is a part of the standard MongoDB distribution and provides a full JavaScript environment
Correct Answer is : mongo
2. Point out the correct statement :
Correct Answer is : All of the mentioned
3. mongo looks for a database server listening on port 27017 on the ________ interface.
Correct Answer is : localhost
4. After starting the mongo shell, your session will use the ________ database by default.
5. Point out the wrong statement :
Correct Answer is : MongoDB does not provide a lot of the features of a traditional RDBMS
6. ___________ command display the list of databases.
Correct Answer is : show dbs
7. Which of the following operation is used to switch to new database mydb ?
Correct Answer is : use mydb
8. Which of the following also returns a list of databases ?
Correct Answer is : show databases
9. Command to check existence of collection is :
Correct Answer is : show collections
10. Which of the following method is used to query documents in collections ?
11. When you query a collection, MongoDB returns a ________ object that contains the results of the query.
Correct Answer is : cursor
12. Point out the correct statement :
Correct Answer is : A MongoDB deployment hosts a number of databases
13. Which of the following method returns true if the cursor has documents ?
Correct Answer is : hasNext()
14. ____________ method renders the document in a JSON-like format.
Correct Answer is : printjson
15. Point out the wrong statement :
Correct Answer is : Documents have static schema in MongoDB
16. Which of the following method is called while accessing documents using the array index notation ?
Correct Answer is : cursor.toArray()
17. The mongo shell and the drivers provide several cursor methods that call on the cursor returned by the _______ method to modify its behavior.
Correct Answer is : find()
18. Which of the following method corresponds to Order by clause in SQL ?
Correct Answer is : sort()
19. The __________ method limits the number of documents in the result set.
Correct Answer is : limit()
20. Which of the following line skips the first 5 documents in the bios collection and returns all remaining documents ?
Correct Answer is : db.bios.find().skip( 5 )