Aggregation on MongoDB related Questions and Answers - Page 2

Question 11 : $addToSet returns an array of all _______ values that results from applying an expression to each document.
1. unique
2. non unique
3. distinct
4. all of the mentioned
View Answer   Discuss with Members

Question 12 : If all documents for the $min operation have null value for the field or are missing the field, the $min operator returns ____ for the minimum value.
1. 1
2. 0
3. null
4. none of the mentioned
View Answer   Discuss with Members

Question 13 : Which of the following is syntax for calculating minimum value ?
1. { $minimum: <int> }
2. { $min: <expression>}
3. { $minimum: <expression> }
4. None of the mentioned
View Answer   Discuss with Members

Question 14 : __________ returns the highest value from the group of values in documents.
1. $end
2. $last
3. $max
4. $maximum
View Answer   Discuss with Members

Question 15 : Which of the following returns the value that results from applying an expression to the last document ?
1. $end
2. $last
3. $max
4. All of the mentioned
View Answer   Discuss with Members

Question 16 : When using $first in a $group stage, the $group stage should follow a _______ stage to have the input documents in a defined order.
1. $order
2. $sort
3. $asc
4. None of the mentioned
View Answer   Discuss with Members

Question 17 : Which of the following ignores non numeric values ?
1. $order
2. $sum
3. $asc
4. None of the mentioned
View Answer   Discuss with Members

Question 18 : $sum is an accumulator operator available only in the _______ stage
1. $group
2. $sets
3. $accumulator
4. None of the mentioned
View Answer   Discuss with Members

Question 19 : __________ take as input a single expression, evaluating the expression once for each input document, and maintain their state for the group of documents.
1. Computer
2. Monitors
3. Accumulators
4. Performoner
View Answer   Discuss with Members

Question 20 : ___________ returns either the non-null result of the first expression.
1. $Null
2. $ifNull
3. $ElseNull
4. None of the mentioned
View Answer   Discuss with Members


View 11 - 20 of 100 Questions

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter