MongoDB/MongoDB Mcq Question Set 11 Sample Test,Sample questions

Question:
 $multiply __________ numbers to return the result.

1. multiplies

2.divides

3.comapres

4. All of the mentioned


Question:
 In the vars assignment block, ________ refers to the value of an externally defined variable low.

1. “$$low”

2.“$$lowin”

3.“$$1”

4.None of the mentioned


Question:
 MongoDB applies the _________ phase, which collects and condenses the aggregated data.

1. map

2.reduce

3.mapper

4.All of the Mentioned


Question:
 Point out the wrong statement.

1. Documents do not pass through the stages in sequence

2.Pipeline stages appear in an multi dimensional array

3.$project reshapes each document in the stream, such as by adding new fields or removing existing fields

4.All of the Mentioned


Question:
 String expressions, with the exception of ________ only have a well-defined behavior for strings of ASCII characters.

1.$setcon

2.$concatenation

3. $concat

4.None of the mentioned


Question:
 Which of the following accepts any number of argument expression?

1. $setIntersection

2.$setDifference

3.$setEquals

4.None of the mentioned


Question:
 Which of the following database command is used for mapreduce function?

1.mapReduce

2.mapperRed

3. redmap

4.None of the mentioned


Question:
 Which of the following performs a relative complement of the second set relative to the first?

1.$setIntersection

2. $setDifference

3.$setEquals

4. $setUnion


Question:
$allElementsTrue returns true if no element of a set evaluates to _______

1.false

2.true

3.0

4.1


Question:
$ne returns true if the values are not _______

1.equivalent

2.null

3.0

4.None of the mentioned


Question:
$setIsSubset returns _______ if all elements of the first set appear in the second set, including when the first set equals the second set.

1.Null

2.True

3.False

4.None of the mentioned


Question:
Aggregation expressions use ______ path to access fields in the input documents.

1.mpath

2.dbpath

3.lpath

4.Field


Question:
Comparison expressions return a boolean except for ________ which returns a number.

1. $copy

2. $cmp

3.$num

4.None of the mentioned


Question:
For most aggregation operations, the ______ Pipeline provides better performance and more coherent interface.

1.Aggregate

2.Replication

3. Sharding

4.None of the mentioned


Question:
MongoDB applies the _____ phase to each input document in mapreduce.

1.map

2.reduce

3.mapper

4.All of the Mentioned


Question:
MongoDB treats the literals as projection flags, valid only in the _______ stage.

1.$project

2.$gmap

3.$match

4.None of the mentioned


Question:
Point out the correct statement.

1.To access variables in expressions, use a string that prefixes the variable name with $$$

2.Expressions can include field paths and system variables, literals, expression objects, and expression operators

3.To specify a field path, use a string that prefixes with a dollar sign % the field name or the dotted field name

4. All of the mentioned


Question:
Point out the correct statement.

1.rsing ambiguity if the argument is a literal array, you must wrap the literal array in a $lits expression or keep the outer array that designates the argument list

2.rsing ambiguity if the argument is a literal array, you must wrap the literal array in a $lits expression or keep the outer array that designates the argument list

3.Operator expressions are similar to functions that take arguments

4. All of the mentioned


Question:
Point out the correct statement.

1.The comparison expressions take two argument expressions and compare both value and type, using the specified Java comparison order for values of different types

2. $gte returns true if the first value is greater than the second

3. $gte returns true if the first value is greater than or equal to the second

4. $gte returns true if the first value is greater than or equal to the second


Question:
Point out the wrong statement.

1.Literals can be of any type

2.CURRENT cannot be rebound

3. MongoDB parses string literals that start with a dollar sign $

4.None of the mentioned


Question:
Point out the wrong statement.

1.Boolean expressions evaluate their argument expressions as booleans and return a boolean as the result

2.In addition to the false boolean value, Boolean expression evaluates as false the following: null, 0, and undefined values

3.Set expressions performs set operation on arrays, treating arrays as sets

4.None of the mentioned


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

1.selection

2.projection

3.collection

4.None of the mentioned


Question:
Syntax for specifying an initial batch size for the cursor is ______

1. cursor: { batchSize: <string> }

2.cursor: { batchSize: <int> }

3.cur: { batchSize: <int> }

4.None of the mentioned


Question:
The output of the reduce function may pass through a ______ function to further condense or process the results of the aggregation.

1. finalize

2.filter

3.procedure

4.None of the mentioned


Question:
To avoid treating numeric or boolean literals as projection flags, use the _______ expression to wrap the numeric or boolean literals.

1.$literal

2.$bool

3. $unwin

4.None of the mentioned


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

1.enableDiskUse

2. allowDiskUse

3. validateDiksUse

4.None of the mentioned


Question:
What would be the maximum document size for results of mapreduce operation?

1.15 MB

2.16 MB

3.17 MB

4.All of the Mentioned


Question:
Which of the following can be used to implement field level redaction?

1.$skip

2.$limit

3. $match

4.$redact


Question:
Which of the following method is overrided by Index filters?

1. hint

2.plan

3.execute

4. All of the mentioned


Question:
Which of the following operator incorporates the functionality of $match, $sort, and $limit for geospatial data?

1.$geoSpatial

2. $geoNear

3. $geoRear

4.None of the mentioned


Question:
Which of the following operator is related to geography of data?

1.$geoSpatial

2.$geoNear

3. $geoRear

4. none of the mentioned


Question:
Which of the following stages cannot appear multiple times in a pipeline?

1.$regex

2.$reg

3. $match

4.$out


Question:
Which of the following statement is equivalent to “$$CURRENT.<field>”?

1. “$%<field>”

2. “%<field>”

3.“$$<field>”

4. “$<field>”


Question:
___ filters the document stream to allow only matching documents to pass unmodified into the next pipeline stage.

1.$regex

2. $reg

3.$match

4.None of the mentioned


Question:
___ passes the first n documents unmodified to the pipeline where n is the specified limit.

1.$skip

2. $limit

3.$match

4. $redact


Question:
____ binds variables for use in the specified expression.

1.$skip

2.$let

3.$bind

4.None of the mentioned


Question:
____ expressions ignores the duplicate entries in each input array and the order of the elements.

1.set

2. boolean

3.aggregate

4.none of the mentioned


Question:
____ reorders the document stream by a specified sort key.

1.$skip

2. $limit

3. $sort

4. none of the mentioned


Question:
____ returns true if the first value is less than the second.

1.$lte

2.$lt

3.$setEquals

4.None of the mentioned


Question:
____ Writes the resulting documents of the aggregation pipeline to a collection.

1.$out

2. $in

3.$output

4.None of the mentioned


Question:
_____ accepts only single argument expression.

1.$setIsSubset

2.$bool

3.$anyElementTrue

4.None of the mentioned


Question:
_____ adds numbers to return the sum, or adds numbers and a date to return a new date.

1. $addnum

2.$setadd

3. $adds

4. $add


Question:
_____ applies an expression to each item in an array and returns an array with the applied results.

1.$map

2.$geo

3. $geoRear

4.None of the mentioned


Question:
_____ deconstructs an array field from the input documents to output a document for each element.

1. $unwindelem

2. $unwind

3.$unwin

4.None of the mentioned


Question:
_____ returns a set with elements that appear in any of the input sets.

1.$setIntersection

2.$setDifference

3. $setEquals

4.$setUnion


Question:
_____ returns the remainder of the first number divided by the second.

1.$rem

2.$mod

3. $div

4.None of the mentioned


Question:
_____ subtracts two dates to return the difference in milliseconds.

1.$rem

2.$mod

3.$div

4.$subtract


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

1. it

2.next

3.cur

4.None of the mentioned


Question:
______ can return the results of a map-reduce operation as a document, or may write the results to collections.

1.mapReduce

2. mapperRed

3.RedMap

4.None of the mentioned


Question:
_______ returns true if the input sets have the same distinct elements.

1. $setUnion

2.$setDifference

3. $setEquals

4.None of the mentioned


More MCQS

  1. MongoDB Mcq Question Set 1
  2. MongoDB Mcq Question Set 2
  3. MongoDB Mcq Question Set 3
  4. MongoDB Mcq Question Set 4
  5. MongoDB Mcq Question Set 5
  6. MongoDB Mcq Question Set 6
  7. MongoDB Mcq Question Set 7
  8. MongoDB Mcq Question Set 8
  9. MongoDB Mcq Question Set 9
  10. MongoDB Mcq Question Set 10
  11. MongoDB Mcq Question Set 11
  12. MongoDB Mcq Question Set 12
  13. MongoDB Mcq Question Set 13
  14. MongoDB Mcq Question Set 14
  15. MongoDB Mcq Question Set 15
  16. MongoDB Mcq Question Set 16
  17. MongoDB Mcq Question Set 17
  18. MongoDB Mcq Question Set 18
  19. MongoDB Mcq Question Set 19
  20. MongoDB Mcq Question Set 20
Search
Olete Team
Online Exam TestTop Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on Online Exam Testwebsite is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!