JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Firm
MongoDB interview questions part 31
MongoDB interview questions part 31
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. Object_Id is similar to _________ key in Relational Databases
A. primary
B. secondary
C. composite
D. all of the mentioned
Show Correct Answer
Correct Answer is :
primary
2. Object_Id is similar to _________ key in Relational Databases
A. primary
B. secondary
C. composite
D. all of the mentioned
Show Correct Answer
Correct Answer is :
primary
3. Point out the correct statement :
A. ObjectIds are small, likely unique, fast to generate, and ordered
B. ObjectIds are large, likely unique, and ordered
C. ObjectIds values consists of 18-bytes
D. All of the mentioned
Show Correct Answer
Correct Answer is :
ObjectIds are small, likely unique, fast to generate, and ordered
4. Point out the correct statement :
A. ObjectIds are small, likely unique, fast to generate, and ordered
B. ObjectIds are large, likely unique, and ordered
C. ObjectIds values consists of 18-bytes
D. All of the mentioned
Show Correct Answer
Correct Answer is :
ObjectIds are small, likely unique, fast to generate, and ordered
5. Which of the field is reserved for use as a primary key ?
A. _id
B. _uid
C. _uuid
D. All of the mentioned
Show Correct Answer
Correct Answer is :
_id
6. Which of the field is reserved for use as a primary key ?
A. _id
B. _uid
C. _uuid
D. All of the mentioned
Show Correct Answer
Correct Answer is :
_id
7. In the mongo shell, you can access the creation time of the ObjectId, using the ______ method..
A. getTime()
B. getTimestamp()
C. Timestamp()
D. none of the mentioned
Show Correct Answer
Correct Answer is :
getTimestamp()
8. In the mongo shell, you can access the creation time of the ObjectId, using the ______ method..
A. getTime()
B. getTimestamp()
C. Timestamp()
D. none of the mentioned
Show Correct Answer
Correct Answer is :
getTimestamp()
9. Point out the wrong statement :
A. The field names cannot start with the dollar sign ($) character
B. The field names cannot contain the dot (.) character
C. The field names cannot contain the null character
D. None of the mentioned
Show Correct Answer
Correct Answer is :
None of the mentioned
10. Point out the wrong statement :
A. The field names cannot start with the dollar sign ($) character
B. The field names cannot contain the dot (.) character
C. The field names cannot contain the null character
D. None of the mentioned
Show Correct Answer
Correct Answer is :
None of the mentioned
11. To ensure functioning replication, do not store values that are of the _______ regular expression type in the _id field.
A. JSON
B. XML
C. JScript
D. None of the mentioned
Show Correct Answer
Correct Answer is :
None of the mentioned
12. To ensure functioning replication, do not store values that are of the _______ regular expression type in the _id field.
A. JSON
B. XML
C. JScript
D. None of the mentioned
Show Correct Answer
Correct Answer is :
None of the mentioned
13. GridFS uses a _________ index on the chunks collection for the files_id and n fields.
A. unique
B. single
C. non unique
D. none of the mentioned
Show Correct Answer
Correct Answer is :
unique
14. GridFS uses a _________ index on the chunks collection for the files_id and n fields.
A. unique
B. single
C. non unique
D. none of the mentioned
Show Correct Answer
Correct Answer is :
unique
15. The ______ field is always the first field in the document.
A. _id
B. id
C. Ob_id
D. None of the mentioned
Show Correct Answer
Correct Answer is :
_id
16. The ______ field is always the first field in the document.
A. _id
B. id
C. Ob_id
D. None of the mentioned
Show Correct Answer
Correct Answer is :
_id
17. The GridFS index allows efficient retrieval of __________ using the files_id and n values
A. chunks
B. files
C. bson
D. none of the mentioned
Show Correct Answer
Correct Answer is :
chunks
18. The GridFS index allows efficient retrieval of __________ using the files_id and n values
A. chunks
B. files
C. bson
D. none of the mentioned
Show Correct Answer
Correct Answer is :
chunks
19. Which of the following query is used to generate a new ObjectId, use the ObjectId() constructor with no argument
A. x = ObjectIdAdd()
B. x = addObjectId()
C. x = ObjectId()
D. none of the mentioned
Show Correct Answer
Correct Answer is :
x = ObjectId()
20. Which of the following query is used to generate a new ObjectId, use the ObjectId() constructor with no argument
A. x = ObjectIdAdd()
B. x = addObjectId()
C. x = ObjectId()
D. none of the mentioned
Show Correct Answer
Correct Answer is :
x = ObjectId()
Similar Interview Questions
Search for latest jobs
Find Jobs