JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
MongoDB interview questions part 15
MongoDB interview questions part 15
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. __________ is a part of the standard MongoDB distribution and provides a full JavaScript environment
A. mongod
B. mongodb
C. mongo
D. none of the mentioned
Show Correct Answer
Correct Answer is :
mongo
2. Point out the correct statement :
A. MMS provides backup and monitoring
B. MongoDB can also be configured for data replication
C. MMS is available to all users in the cloud and on-premises as part of MongoDB Standard and Enterprise Subscriptions
D. All of the mentioned
Show Correct Answer
Correct Answer is :
All of the mentioned
3. mongo looks for a database server listening on port 27017 on the ________ interface.
A. web
B. localhost
C. web host
D. all of the mentioned
Show Correct Answer
Correct Answer is :
localhost
4. After starting the mongo shell, your session will use the ________ database by default.
A. mongo
B. master
C. test
D. primary
Show Correct Answer
Correct Answer is :
test
5. Point out the wrong statement :
A. MongoDB works right out of the box, and you can dive right into developing your application, instead of spending a lot of time fine-tuning obscure database configurations
B. MongoDB works hard to be very easy to install, configure, maintain, and use
C. MongoDB does not provide a lot of the features of a traditional RDBMS
D. None of the mentioned
Show Correct Answer
Correct Answer is :
MongoDB does not provide a lot of the features of a traditional RDBMS
6. ___________ command display the list of databases.
A. show db
B. show dbs
C. show data
D. display dbs
Show Correct Answer
Correct Answer is :
show dbs
7. Which of the following operation is used to switch to new database mydb ?
A. use dbs
B. use db
C. use mydb
D. use mydbs
Show Correct Answer
Correct Answer is :
use mydb
8. Which of the following also returns a list of databases ?
A. show databases
B. show database
C. display dbs
D. All of the mentioned
Show Correct Answer
Correct Answer is :
show databases
9. Command to check existence of collection is :
A. show collection
B. show collections
C. show collect
D. None of the mentioned
Show Correct Answer
Correct Answer is :
show collections
10. Which of the following method is used to query documents in collections ?
A. find
B. move
C. shell
D. replace
Show Correct Answer
Correct Answer is :
find
11. When you query a collection, MongoDB returns a ________ object that contains the results of the query.
A. row
B. cursor
C. colums
D. none of the mentioned
Show Correct Answer
Correct Answer is :
cursor
12. Point out the correct statement :
A. A database is a set of key-value pairs
B. A MongoDB deployment hosts a number of databases
C. A document holds a set of collections
D. All of the mentioned
Show Correct Answer
Correct Answer is :
A MongoDB deployment hosts a number of databases
13. Which of the following method returns true if the cursor has documents ?
A. hasMethod()
B. hasNext()
C. hasDoc()
D. all of the mentioned
Show Correct Answer
Correct Answer is :
hasNext()
14. ____________ method renders the document in a JSON-like format.
A. displayjson
B. print
C. printjson
D. printdoc
Show Correct Answer
Correct Answer is :
printjson
15. Point out the wrong statement :
A. Documents have static schema in MongoDB
B. Eventually-consistent reads can be distributed over replicated servers
C. Indexes can include keys from embedded documents and arrays.
D. None of the mentioned
Show Correct Answer
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 ?
A. cur.toArray()
B. cursor.toArray()
C. doc.toArray()
D. all of the mentioned
Show Correct Answer
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.
A. cursor()
B. find()
C. findc()
D. none of the mentioned
Show Correct Answer
Correct Answer is :
find()
18. Which of the following method corresponds to Order by clause in SQL ?
A. sort()
B. order()
C. orderby()
D. all of the mentioned
Show Correct Answer
Correct Answer is :
sort()
19. The __________ method limits the number of documents in the result set.
A. limit()
B. limitOf()
C. limitBy()
D. none of the mentioned
Show Correct Answer
Correct Answer is :
limit()
20. Which of the following line skips the first 5 documents in the bios collection and returns all remaining documents ?
A. db.bios.find().limit( 5 )
B. db.bios.find().skip( 1 )
C. db.bios.find().skip( 5 )
D. db.bios.find().sort( 5 )
Show Correct Answer
Correct Answer is :
db.bios.find().skip( 5 )
Similar Interview Questions
Search for latest jobs
Find Jobs