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

Question:
 MongoDB indexes use a _______ data structure.

1.Hash

2.Map

3.B-tree

4. All of the mentioned

Posted Date:-2022-01-26 08:19:49


Question:
 Point out the wrong statement.

1.$second returns the seconds for a date as a number between 0 and 60 (leap seconds)

2. $minute returns the minute for a date as a number between 0 and 59

3.$millis returns the milliseconds of a date as a number between 0 and 1000

4. All of the mentioned

Posted Date:-2022-01-26 08:07:30


Question:
 Which of the following accepts named parameters?

1.$reduce

2.$letnum

3. $let

4.None of the mentioned

Posted Date:-2022-01-26 07:58:53


Question:
 Which of the following provides similar functionality to join?

1.$unwindelem

2. $unwind

3.$unwin

4.None of the mentioned

Posted Date:-2022-01-26 08:16:44


Question:
$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

Posted Date:-2022-01-26 08:14:50


Question:
$dayOfMonth returns the day of the month for a date as a number between _____

1. 1 and 31

2.1 and 30

3. 1 and 28

4.None of the mentioned

Posted Date:-2022-01-26 08:07:04


Question:
$sum is an accumulator operator available only in the _______ stage.

1.$group

2. $sets

3.$accumulator

4.None of the mentioned

Posted Date:-2022-01-26 08:11:23


Question:
. Point out the correct statement.

1.$substr ends at a specified index position up to a specified length

2.$toLower converts a string to lowercase

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

4. All of the mentioned

Posted Date:-2022-01-26 07:56:32


Question:
COUNT function is provided by _________ in MongoDB.

1.$end

2. $sum

3.$max

4.All of the Mentioned

Posted Date:-2022-01-26 08:19:19


Question:
db.collection.aggregate() returns a _______ and can return result sets of any size.

1.replica

2.cursor

3.document

4. $subtract

Posted Date:-2022-01-26 08:00:05


Question:
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

Posted Date:-2022-01-26 08:14:23


Question:
If the ______ field for mapReduce has the sharded value, MongoDB shards the output collection using the _id field as the shard key.

1. input

2.$in

3. $out

4.None of the mentioned

Posted Date:-2022-01-26 08:03:05


Question:
In MongoDB __________ mongos retrieves the results from each shard, performs a merge sort to order the results.

1.3.0

2.2.0

3.1.0

4.None of the mentioned

Posted Date:-2022-01-26 08:03:33


Question:
MongoDB converts the JavaScript objects emitted by the map function to ________ objects.

1.BSON

2. JSON

3. Javascript

4.None of the mentioned

Posted Date:-2022-01-26 08:05:22


Question:
Point out the correct statement.

1.The read phase takes a exclusive lock

2.The map-reduce operation is composed of many tasks

3. Prior to version 3, JavaScript code executed in a single thread

4. All of the mentioned

Posted Date:-2022-01-26 08:02:42


Question:
Point out the wrong statement.

1. { $meta: “textScore” } expression is only meaningful in a pipeline that includes a $match stage with a $text query

2.The { $meta: “textScore” } expression is the only expression that the $sort stage accepts

3.$toLower only has a well-defined behavior for strings of ASCII characters

4.None of the mentioned

Posted Date:-2022-01-26 07:58:04


Question:
Point out the wrong statement.

1.If the output collection does not exist, MongoDB creates and shards the collection on the _id field

2.Map-reduce supports operations on sharded collections, both as an input and as an output

3.mongos dispatches, in parallel, a map-reduce post-processing job to every shard that owns a chunk

4. none of the mentioned

Posted Date:-2022-01-26 08:04:04


Question:
Point out the wrong statement.

1.$weekDay returns the week number for a date as a number between 0 and 53 (leap year)

2. $cond accepts either two expressions in an ordered list or three named parameters

3.$toLower only has a well-defined behavior for strings of ASCII characters

4.None of the mentioned

Posted Date:-2022-01-26 08:08:53


Question:
Point out the wrong statement.

1.$avg is an accumulator operator available only in the $group stage

2. $sum accumulator can be used to compute the total amount and count for each group of documents

3.$avg ignores numeric values

4.All of the Mentioned

Posted Date:-2022-01-26 08:11:51


Question:
Point out the wrong statement.

1.Variables can hold any BSON type data

2. Aggregation expressions can use both user-defined and system variables

3.To access the value of the variable, use a string with the variable name prefixed with double dollar signs ($$)

4.None of the mentioned

Posted Date:-2022-01-26 08:15:56


Question:
Point out the wrong statement.

1.CURRENT references the start of the field path being processed in the aggregation pipeline stage

2. All stages start with CURRENT the same as ROOT

3.DESCENDING is one of the allowed results of a $let expression

4.None of the mentioned

Posted Date:-2022-01-26 08:17:15


Question:
The _____ JavaScript engine allows multiple JavaScript operations to execute at the same time.

1. V8

2.V12

3. V7

4.None of the mentioned

Posted Date:-2022-01-26 08:00:40


Question:
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

Posted Date:-2022-01-26 08:12:43


Question:
Which of the following accepts a single argument expression?

1.$toLow

2. $toUpper

3.$toEqual

4.None of the mentioned

Posted Date:-2022-01-26 07:56:59


Question:
Which of the following function follows the reduce method and modifies the output?

1.finalize

2.final

3.max

4. All of the mentioned

Posted Date:-2022-01-26 08:04:29


Question:
Which of the following ignores non numeric values?

1.$order

2. $sum

3.$asc

4.None of the mentioned

Posted Date:-2022-01-26 08:12:13


Question:
Which of the following is syntax for calculating minimum value?

1.{ $minimum: <int> }

2.{ $min: <expression>}

3.{ $minimum: <expression> }

4.None of the mentioned

Posted Date:-2022-01-26 08:13:56


Question:
Which of the following is used to retrieve like SELECT clause in SQL?

1. $reduce

2.$select

3. $project

4. none of the mentioned

Posted Date:-2022-01-26 08:18:04


Question:
Which of the following mode defaults to false?

1.jsMode

2.scope

3.finalize

4.Min

Posted Date:-2022-01-26 08:06:21


Question:
Which of the following performs case-insensitive string comparison?

1.$strcasecmpequals

2. $strcasecmp

3. $strcmp

4.None of the mentioned

Posted Date:-2022-01-26 07:57:23


Question:
Which of the following returns a substring of a string?

1.$subs

2. $substring

3.$substr

4.None of the mentioned

Posted Date:-2022-01-26 07:56:02


Question:
Which of the following returns the hour for a date as a number between 0 and 23?

1.$minute

2.$hour

3. $seconds

4.All of the Mentioned

Posted Date:-2022-01-26 08:09:14


Question:
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

Posted Date:-2022-01-26 08:13:07


Question:
Which of the following returns year for particular date?

1.$year

2.$yearday

3.$syearofmonth

4.None of the mentioned

Posted Date:-2022-01-26 08:08:20


Question:
Which of the operator is similar to order by clause in RDBMS?

1. $sort

2.$match

3.$sortby

4.none of the mentioned

Posted Date:-2022-01-26 08:16:19


Question:
You can only use jsMode for result sets with fewer than 500,000 distinct key arguments to the mapper’s _______ function.

1. emit()

2. emitter()

3.emitted()

4. none of the mentioned

Posted Date:-2022-01-26 08:05:51


Question:
___ result encompasses instances of undefined values or missing fields.

1. Number

2. String

3.Null

4.None of the mentioned

Posted Date:-2022-01-26 08:10:08


Question:
____ groups documents by some specified expression and outputs to the next stage a document for each distinct grouping.

1.$setcon

2.$group

3.$match

4.None of the mentioned

Posted Date:-2022-01-26 08:18:28


Question:
____ references the root document, i.e. the top-level document, currently being processed in the aggregation pipeline stage.

1.CURRENT

2. ROOT

3.PRUNE

4.All of the Mentioned

Posted Date:-2022-01-26 08:15:22


Question:
____ returns the number of elements in the array.

1.$number

2. $size

3.$div

4.None of the mentioned

Posted Date:-2022-01-26 07:59:18


Question:
_____ limits the number of documents in result set.

1.$project

2. $geo

3. $limit

4. none of the mentioned

Posted Date:-2022-01-26 08:17:41


Question:
_____ returns a value without parsing.

1.$string

2.$literal

3.$characters

4.None of the mentioned

Posted Date:-2022-01-26 07:59:42


Question:
_____ returns the day of the year for a date as a number between 1 and 366.

1.$dayofWeekend

2.$dayOfWeek

3. $dayOfYear

4.None of the mentioned

Posted Date:-2022-01-26 08:07:56


Question:
______ is used for access text search metadata.

1.$text

2.$metades

3.$meta

4.All of the Mentioned

Posted Date:-2022-01-26 07:58:29


Question:
______ returns either the non-null result of the first expression.

1. $Null

2.$ifNull

3. $ElseNull

4. none of the mentioned

Posted Date:-2022-01-26 08:10:29


Question:
______ returns the date as a formatted string.

1.$toString

2.$dateToString

3. $letString

4.None of the mentioned

Posted Date:-2022-01-26 08:09:39


Question:
______ returns the highest value from the group of values in documents.

1.$end

2. $last

3.$max

4.$maximum

Posted Date:-2022-01-26 08:13:32


Question:
______ specifies global variables that are accessible in the map.

1. jsMode

2.scope

3.finalize

4. Min

Posted Date:-2022-01-26 08:04:58


Question:
______ 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

Posted Date:-2022-01-26 08:10:54


Question:
______ works similar to HAVING clause in SQL.

1.$setcon

2.$group

3.$match

4.None of the mentioned

Posted Date:-2022-01-26 08:18:52


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
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website 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!