

MCQOPTIONS
Saved Bookmarks
This section includes 15 Mcqs, each offering curated multiple-choice questions to sharpen your Mongodb knowledge and support exam preparation. Choose a topic below to get started.
1. |
db.collection.aggregate() returns a _______ and can return result sets of any size. |
A. | replica |
B. | cursor |
C. | document |
D. | $subtract |
Answer» C. document | |
2. |
_________ returns a value without parsing. |
A. | $string |
B. | $literal |
C. | $characters |
D. | None of the mentioned |
Answer» C. $characters | |
3. |
_______ returns the number of elements in the array. |
A. | $number |
B. | $size |
C. | $div |
D. | None of the mentioned |
Answer» C. $div | |
4. |
Which of the following accepts named parameters? |
A. | $reduce |
B. | $letnum |
C. | $let |
D. | None of the mentioned |
Answer» E. | |
5. |
Which of the following performs case-insensitive string comparison? |
A. | $strcasecmpequals |
B. | $strcasecmp |
C. | $strcmp |
D. | None of the mentioned |
Answer» B. $strcasecmp | |
6. |
Which of the following accepts a single argument expression? |
A. | $toLow |
B. | $toUpper |
C. | $toEqual |
D. | None of the mentioned |
Answer» C. $toEqual | |
7. |
Which of the following returns a substring of a string? |
A. | $subs |
B. | $substring |
C. | $substr |
D. | None of the mentioned |
Answer» D. None of the mentioned | |
8. |
__________RETURNS_A_VALUE_WITHOUT_PARSING.?$ |
A. | $string |
B. | $literal |
C. | $characters |
D. | None of the mentioned |
Answer» C. $characters | |
9. |
db.collection.aggregate()_returns_a_________and_can_return_result_sets_of_any_size.$ |
A. | replica |
B. | cursor |
C. | document |
D. | $subtract |
Answer» C. document | |
10. |
_______ returns the number of elements in the array? |
A. | $number |
B. | $size |
C. | $div |
D. | None of the mentioned |
Answer» C. $div | |
11. |
Which of the following accepts named parameters ? |
A. | $reduce |
B. | $letnum |
C. | $let |
D. | None of the mentioned |
Answer» E. | |
12. |
_______ is used for access text search metadata. |
A. | $text |
B. | $metades |
C. | $meta |
D. | All of the mentioned |
Answer» D. All of the mentioned | |
13. |
Which of the following performs case-insensitive string comparison ? |
A. | $strcasecmpequals |
B. | $strcasecmp |
C. | $strcmp |
D. | None of the mentioned |
Answer» B. $strcasecmp | |
14. |
Which of the following accepts a single argument expression ? |
A. | $toLow |
B. | $toUpper |
C. | $toEqual |
D. | None of the mentioned |
Answer» C. $toEqual | |
15. |
Which of the following returns a substring of a string ? |
A. | $subs |
B. | $substring |
C. | $substr |
D. | None of the mentioned |
Answer» D. None of the mentioned | |