Sail E0 Webinar

MCQs

Total Questions : 50 | Page 1 of 5 pages
Question 1. _____________________sorting is not supported by MongoDB
  1.    collection
  2.    collation
  3.    heap
  4.    none of the mentioned
 Discuss Question
Answer: Option B. -> collation
Question 2. What is the equivalent command in MongoDB for the following SQL query?SELECT * FROM posts WHERE author like "%john%"
  1.    db.posts.find( { author: /john/ } )
  2.    db.posts.find( { author: {$like: /john/} } )
  3.    db.posts.find( { $like: {author: /john/} } )
  4.    db.posts.find( { author: /^john^/ } )
 Discuss Question
Answer: Option A. -> db.posts.find( { author: /john/ } )
Question 3. Which field is always the first field in the document
  1.    _id
  2.    Ob_id
  3.    id
  4.    None of these
 Discuss Question
Answer: Option A. -> _id
Question 4. What is the interactive shell for MongoDB called?
  1.    mongo
  2.    mongodb
  3.    dbmong
  4.    None
 Discuss Question
Answer: Option A. -> mongo
Question 5. Command display the list of databases
  1.    show db
  2.    show dbs
  3.    show data
  4.    display dbs
 Discuss Question
Answer: Option B. -> show dbs
Question 6. Which of the following line skips the first 5 documents in the bios collection and returns all remaining documents?
  1.    db.bios.find().limit( 5 )
  2.    db.bios.find().skip( 1 )
  3.    db.bios.find().skip( 5)
  4.    db.bios.find().sort( 5 )
 Discuss Question
Answer: Option C. -> db.bios.find().skip( 5)
Question 7. Which of the following is used to start server in MongoDB?
  1.    mongod
  2.    mongo
  3.    start-mongo
  4.    start-mongo.sh
 Discuss Question
Answer: Option A. -> mongod
Question 8. MongoDB is a _________ database that provides high performance, high availability, and easy scalability
  1.    Graph
  2.    Key value
  3.    Document
  4.    All of the mentioned
 Discuss Question
Answer: Option C. -> Document
Question 9. MongoDB Queries can return specific fields of documents which also include user-defined __________ functions
  1.    JavaScript
  2.    C
  3.    C++
  4.    ALL
 Discuss Question
Answer: Option A. -> JavaScript
Question 10. Which of the following method is used to query documents in collections?
  1.    move
  2.    shell
  3.    find
  4.    replace
 Discuss Question
Answer: Option C. -> find

Latest Videos

Latest Test Papers