

MCQOPTIONS
Saved Bookmarks
This section includes 12 Mcqs, each offering curated multiple-choice questions to sharpen your Mongodb knowledge and support exam preparation. Choose a topic below to get started.
1. |
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 |
Answer» D. none of the mentioned | |
2. |
__________ returns the JavaScript representation in the form of a string literal. |
A. | toStringJava() |
B. | toString() |
C. | String() |
D. | none of the mentioned |
Answer» C. String() | |
3. |
The ______ field is always the first field in the document. |
A. | _id |
B. | id |
C. | Ob_id |
D. | None of the mentioned |
Answer» B. id | |
4. |
Which of the field is reserved for use as a primary key? |
A. | _id |
B. | _uid |
C. | _uuid |
D. | All of the mentioned |
Answer» B. _uid | |
5. |
Object_Id is similar to _________ key in Relational Databases. |
A. | primary |
B. | secondary |
C. | composite |
D. | all of the mentioned |
Answer» B. secondary | |
6. |
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 |
Answer» B. files | |
7. |
The ______ field is always the first field in the document? |
A. | _id |
B. | id |
C. | Ob_id |
D. | None of the mentioned |
Answer» B. id | |
8. |
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 |
Answer» B. single | |
9. |
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 |
Answer» E. | |
10. |
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 |
Answer» C. Timestamp() | |
11. |
Which of the field is reserved for use as a primary key ? |
A. | _id |
B. | _uid |
C. | _uuid |
D. | All of the mentioned |
Answer» B. _uid | |
12. |
Object_Id is similar to _________ key in Relational Databases |
A. | primary |
B. | secondary |
C. | composite |
D. | all of the mentioned |
Answer» B. secondary | |