Home / CSE MCQs / MongoDB MCQs :: MongoDB CRUD Concepts and Operation

CSE MCQs :: MongoDB MCQs

  1. MongoDB stores all documents in :
  2. A.
    tables
    B.
    collections
    C.
    rows
    D.
    All of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. In MongoDB, _________ operations modify the data of a single collection.
  4. A.
    CRUD
    B.
    GRID
    C.
    READ
    D.
    All of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. After starting the mongo shell, your session will use the ________ database by default.
  6. A.
    mongo
    B.
    master
    C.
    test
    D.
    primary

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. Which of the following method returns true if the cursor has documents ?
  8. A.
    hasMethod()
    B.
    hasNext()
    C.
    hasDoc()
    D.
    All of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. Which of the following method is called while accessing documents using the array index notation ?
  10. A.
    cur.toArray()
    B.
    cursor.toArray()
    C.
    doc.toArray()
    D.
    All of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. Which of the following method returns one document ?
  12. A.
    findOne()
    B.
    findOne1()
    C.
    selectOne()
    D.
    All of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. Which of the following is second argument to projection ?
  14. A.
    findOne()
    B.
    findOne1()
    C.
    selectOne()
    D.
    find()

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. Which of the following will display complete list of available cursor flags ?
  16. A.
    cursor.Option()
    B.
    cursor.addOption()
    C.
    cursor.addOptions()
    D.
    All of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. The ________ message is used to update a document in a collection.
  18. A.
    UPDATE
    B.
    OP_UPDATE
    C.
    OP_UPDATES
    D.
    All of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. The mongo shell and the MongoDB drivers use __________ as the default write concern.
  20. A.
    Nacknowledged
    B.
    Acknowledgement
    C.
    Acknowledged
    D.
    All of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum