Home / CSE MCQs / MongoDB MCQs :: MongoDB Aggregation Concept, Mechanics

CSE MCQs :: MongoDB MCQs

  1. Which of the following accepts named parameters ?
  2. A.
    $reduce
    B.
    $letnum
    C.
    $let
    D.
    None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. Point out the wrong statement :
  4. A.
    Some pipeline stages may generate new documents or filter out documents
    B.
    $limit groups output documents by a specified operator
    C.
    $group groups input documents by a specified identifier expression
    D.
    None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. ______ can be used to iterate the cursor of document results returned by db.collection.find().
  6. A.
    it
    B.
    next
    C.
    cur
    D.
    None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. The most basic pipeline stages provide __________ that operate like queries.
  8. A.
    methods
    B.
    filters
    C.
    stored procedure
    D.
    None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. Which of the following function follows the reduce method and modifies the output ?
  10. A.
    finalize
    B.
    final
    C.
    Max
    D.
    All of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. The output of the reduce function may pass through a ______ function to further condense or process the results of the aggregation.
  12. A.
    finalize
    B.
    filter
    C.
    procedure
    D.
    None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. Which of the following accepts named parameters ?
  14. A.
    $reduce
    B.
    $letnum
    C.
    $let
    D.
    None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. String expressions, with the exception of ________, only have a well-defined behavior for strings of ASCII characters.
  16. A.
    $setcon
    B.
    $concatenation
    C.
    $concat
    D.
    None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. Which of the following returns the hour for a date as a number between 0 and 23 ?
  18. A.
    $minute
    B.
    $hour
    C.
    $seconds
    D.
    All of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum