JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
MongoDB interview questions part 14
MongoDB interview questions part 14
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. Point out the correct statement :
A. Exit code 10 is for abnormal exit
B. 4 is returned when the version of the database is different from the version supported by the mongod (or mongod.exe) instance
C. The server socket is on port 27017 by default
D. None of the mentioned
Show Correct Answer
Correct Answer is :
4 is returned when the version of the database is different from the version supported by the mongod (or mongod.exe) instance
2. Which of the following code represents exit cleanly following a large clock skew (32768 milliseconds) event ?
A. 45
B. 20
C. 47
D. 100
Show Correct Answer
Correct Answer is :
47
3. 49 code is returned by mongod from _________ Service control Manager.
A. Linux
B. Windows
C. Ubuntu
D. All of the mentioned
Show Correct Answer
Correct Answer is :
Linux
4. Which of the following code is returned when a MongoDB application cannot open a file ?
A. 45
B. 20
C. 47
D. 100
Show Correct Answer
Correct Answer is :
45
5. Identify the message returned by MongoDB applications for Windows due to failures installing ?
A. Message: ERROR: wsastartup failed
B. Message: NT Service Error
C. Message: wsastartup failed
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Message: NT Service Error
6. Which of the following document represents uncaught exception ?
A. 45
B. 49
C. 47
D. 100
Show Correct Answer
Correct Answer is :
100
7. Point out the correct statement :
A. Collection is a group of MongoDB documents
B. MongoDB is an open-source document database, and leading NoSQL database
C. Collections do not enforce a schema
D. All of the mentioned
Show Correct Answer
Correct Answer is :
Collection is a group of MongoDB documents
8. Which of the following method returns a cursor ?
A. find
B. sort
C. skip
D. all of the mentioned
Show Correct Answer
Correct Answer is :
find
9. Point out the wrong statement :
A. Database is a physical container for collections
B. A single MongoDB server typically has single databases
C. Collection is the equivalent of an RDBMS table
D. None of the mentioned
Show Correct Answer
Correct Answer is :
A single MongoDB server typically has single databases
10. _id is a ________ bytes hexadecimal number which assures the uniqueness of every document.
A. 13
B. 16
C. 12
D. 10
Show Correct Answer
Correct Answer is :
12
11. Which of the following statement will insert 400 documents in to the testData collection ?
A. insertData("test", "testData", 200)
B. insertData("test", "testData", 400)
C. insertData("test", "testData", 600)
D. all of the mentioned
Show Correct Answer
Correct Answer is :
insertData("test", "testData", 400)
12. The mongo shell loads and parses the ___________ file on startup.
A. mongo.js
B. mongoc.js
C. mongorc.js
D. all of the mentioned
Show Correct Answer
Correct Answer is :
mongorc.js
13. To iterate the cursor and return more documents, type _________ in the mongo shell.
A. cursor
B. it
C. next
D. none of the mentioned
Show Correct Answer
Correct Answer is :
it
14. Which of the following key is used to denote uniqueness in the collection ?
A. _id
B. id
C. id_
D. none of the mentioned
Show Correct Answer
Correct Answer is :
_id
15. ___________ selects geometries that intersect with a GeoJSON geometry.
A. $near
B. $nearsphere
C. $geoIntersect
D. None of the mentioned
Show Correct Answer
Correct Answer is :
$geoIntersect
16. Point out the correct statement :
A. Both 2dsphere and 2d geospatial indexes support $geoWithin
B. $geoWithin does not require a geospatial index
C. The $geoWithin operator does not return sorted results
D. None of the mentioned
Show Correct Answer
Correct Answer is :
$geoWithin does not require a geospatial index
17. _________ returns geospatial objects in proximity to a point on a sphere. Requires a geospatial index.
A. $near
B. $nearsphere
C. $geoIntersect
D. None of the mentioned
Show Correct Answer
Correct Answer is :
$nearsphere
18. The __________ operator constrains the results of a geospatial $near or $nearSphere query to the specified distance.
A. $center
B. $maxDistance
C. $minDistance
D. All of the mentioned
Show Correct Answer
Correct Answer is :
$maxDistance
19. The _________ operator specifies a circle for a $geoWithin query.
A. $within
B. $gwithin
C. $center
D. All of the mentioned
Show Correct Answer
Correct Answer is :
$center
20. ________ index must exist on a field holding coordinates before using any of the geospatial query operators.
A. Unique
B. Geospatial
C. Temporal
D. All of the mentioned
Show Correct Answer
Correct Answer is :
Geospatial
Similar Interview Questions
Search for latest jobs
Find Jobs