MongoDB MCQ Quiz Hub

MongoDB Mcq Question Set 11

Choose a topic to test your knowledge and improve your MongoDB skills

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




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




3. Syntax for specifying an initial batch size for the cursor is ______




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




5. Which of the following method is overrided by Index filters?




6. Which of the following database command is used for mapreduce function?




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




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




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




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




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




12. What would be the maximum document size for results of mapreduce operation?




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




14. Point out the wrong statement.




15. Which of the following can be used to implement field level redaction?




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




17. ____ reorders the document stream by a specified sort key.




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




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




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




21. Which of the following operator is related to geography of data?




22. Which of the following stages cannot appear multiple times in a pipeline?




23. Point out the correct statement.




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




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




26. Point out the wrong statement.




27. ____ binds variables for use in the specified expression.




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




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




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




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




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




33. Point out the correct statement.




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




35. Which of the following accepts any number of argument expression?




36. Point out the wrong statement.




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




38. Which of the following performs a relative complement of the second set relative to the first?




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




40. _____ accepts only single argument expression.




41. $allElementsTrue returns true if no element of a set evaluates to _______




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




43. Point out the correct statement.




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




45. $ne returns true if the values are not _______




46. $multiply __________ numbers to return the result.




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




48. _____ returns the remainder of the first number divided by the second.




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




50. _____ subtracts two dates to return the difference in milliseconds.