Explore topic-wise MCQs in Mongodb.

This section includes 13 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 method is overrided by Index filters?

A. hint
B. plan
C. execute
D. all of the mentioned
Answer» B. plan
2.

Query shape consists of a combination of query, sort, and _________ specifications.

A. selection
B. projection
C. collection
D. none of the mentioned
Answer» D. none of the mentioned
3.

Syntax for specifying an initial batch size for the cursor is ________________

A. cursor: { batchSize: <string> }
B. cursor: { batchSize: <int> }
C. cur: { batchSize: <int> }
D. none of the mentioned
Answer» C. cur: { batchSize: <int> }
4.

To handle large datasets, set _________ option to true to enable writing data to temporary files.

A. enableDiskUse
B. allowDiskUse
C. validateDiksUse
D. none of the mentioned
Answer» C. validateDiksUse
5.

Cursors returned from aggregation only supports cursor methods like ________________

A. cursor.hasNext()
B. cursor.Next()
C. cursor.has()
D. all of the mentioned
Answer» B. cursor.Next()
6.

QUERY_SHAPE_CONSISTS_OF_A_COMBINATION_OF_QUERY,_SORT,_AND___________SPECIFICATIONS.?$

A. selection
B. projection
C. collection
D. none of the mentioned
Answer» D. none of the mentioned
7.

Which of the following method is overrided by Index filters ?$

A. hint
B. plan
C. execute
D. all of the mentioned
Answer» B. plan
8.

Which_of_the_following_method_is_overrided_by_Index_filters_?$

A. hint
B. plan
C. execute
D. all of the mentioned
Answer» B. plan
9.

Syntax for specifying an initial batch size for the cursor is ?

A. cursor: { batchSize: <string> }
B. cursor: { batchSize: <int> }
C. cur: { batchSize: <int> }
D. none of the mentioned
Answer» C. cur: { batchSize: <int> }
10.

______ can be used to iterate the cursor of document results returned by db.collection.find().

A. it
B. next
C. cur
D. none of the mentioned
Answer» B. next
11.

Cursors returned from aggregation only supports cursor methods like :

A. cursor.hasNext()
B. cursor.Next()
C. cursor.has()
D. all of the mentioned
Answer» B. cursor.Next()
12.

________ calculates aggregate values for the data in a collection.

A. db.collection.aggregate
B. db.collection.agg
C. db.collection.pipeline
D. all of the mentioned
Answer» B. db.collection.agg
13.

Aggregation pipeline was introduced in MongoDB version ______

A. 2.1
B. 2.2
C. 2.4
D. 3.0
Answer» C. 2.4