1. $cmp comparison operator returns ______ as output.
a. Boolean
b. Number
2. All comparison expressions returns boolean except for $cmp.
a. True
b. False
3. Number of arguments required for the comparison aggregation operators
a. 1
b. 2
c. 3
d. 4
4. Comparison operators compare _____
a. Only value
b. Only type
c. Both value and type
d. None of the above
5. Choose the comparison operators below. Select all that apply.
a. $ne
b. $cmp
c. $in
d. $all
6. Arithmetic aggregation operators perform mathematical operators only on numbers.
a. True
b. False
7. String expressions, with the exception of _____ have a well defined behavior for strings of ASCII characters.
a. $strcasecmp
b. $toUpper
c. $toLower
d. $concat
8. Aggregation operator to access the text search metadata is
a. $text
b. $meta
c. $let
d. $slice
9. The following command returns the milli seconds portion of a date
a. $millis
b. $milliseconds
c. $millisecond
d. $milli
10. Choose the ternary operator.
a. $ifNull
b. $multiply
c. $cond
d. $sum
Answers
--------------
1. b
2. a
3. b
4. c
5. a,b
6. b
7. d
8. b
9. c
10. c
very useful one...tq
ReplyDelete