Explore topic-wise MCQs in Mongodb.

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.

_____ indexes uses planar geometry when returning results.

A. 2d
B. 1d
C. 3d
D. All of the mentioned
Answer» B. 1d
2.

MongoDB provides a ________ index type that supports searching for string content in a collection.

A. string
B. text
C. char
D. none of the mentioned
Answer» C. char
3.

___________ indexes use spherical geometry to return results.

A. 3dsphere
B. 2dsphere
C. 1dsphere
D. none of the mentioned
Answer» C. 1dsphere
4.

MongoDB also supports user-defined indexes on multiple fields called ____________

A. compound
B. composite
C. candidate
D. none of the mentioned
Answer» B. composite
5.

MONGODB_PROVIDES_A__________INDEX_TYPE_THAT_SUPPORTS_SEARCHING_FOR_STRING_CONTENT_IN_A_COLLECTION.?$

A. string
B. text
C. char
D. none of the mentioned
Answer» C. char
6.

______indexes_uses_planar_geometry_when_returning_results.$

A. 2d
B. 1d
C. 3d
D. All of the mentioned
Answer» B. 1d
7.

___________ indexes use spherical geometry to return results?

A. 3sphere
B. 2sphere
C. 1sphere
D. none of the mentioned
Answer» C. 1sphere
8.

MongoDB uses ______ indexes to index the content stored in arrays.

A. singlekey
B. multikey
C. compkey
D. none of the mentioned
Answer» C. compkey
9.

MongoDB also supports user-defined indexes on multiple fields called :

A. compound
B. composite
C. candidate
D. none of the mentioned
Answer» B. composite
10.

The ______ index is unique and prevents clients from inserting two documents with the same value for the _id field.

A. _id
B. $default
C. _def
D. None of the mentioned
Answer» B. $default
11.

MongoDB supports the creation of user-defined ascending/descending indexes on a ______ field of a document.

A. Single
B. Non Unique
C. Compound
D. None of the mentioned
Answer» B. Non Unique
12.

MongoDB indexes use a _______ data structure.

A. Hash
B. Map
C. B-tree
D. All of the mentioned
Answer» C. B-tree