Sail E0 Webinar

MCQs

Total Questions : 50 | Page 2 of 5 pages
Question 11. A collection in MongoDB is a group of
  1.    Databases
  2.    Related documents
  3.    Schema
  4.    Rows
 Discuss Question
Answer: Option B. -> Related documents
Question 12. Which of the following operation adds a new document to the users collection ?
  1.    add
  2.    insert
  3.    truncate
  4.    drop
 Discuss Question
Answer: Option B. -> insert
Question 13. Which command in Mongodb is equivalent to SQL select?
  1.    find ()
  2.    search()
  3.    document
  4.    none
 Discuss Question
Answer: Option A. -> find ()
Question 14. Point out the correct statement :
  1.    Hadoop is an ideal environment for extracting and transforming small volumes of data
  2.    Hadoop stores data in HDFS and supports data compression/decompression
  3.    The Giraph framework is less useful than a MapReduce job to solve graph and machine learning
  4.    all
 Discuss Question
Answer: Option B. -> Hadoop stores data in HDFS and supports data compression/decompression
Question 15. Which one of the following is equivalent in MongoDB select* from employee order by salary desc;?
  1.    db.employee.find.sort({“salary”:1}]
  2.    db.employee.sort ({“salary”:-1}]
  3.    db.employee.find.sort ({“salary”:-1}
  4.    db.employee.sort({“salary”:1}]
 Discuss Question
Answer: Option C. -> db.employee.find.sort ({“salary”:-1}
Question 16. Point out the wrong statement :
  1.    Non Relational databases require that schemas be defined before you can add data
  2.    NoSQL databases are built to allow the insertion of data without a predefined schema
  3.    NewSQL databases are built to allow the insertion of data without a predefined schema
  4.    all
 Discuss Question
Answer: Option A. -> Non Relational databases require that schemas be defined before you can add data
Question 17. NoSQL databases is used mainly for handling large volumes of ______________ data
  1.    Unstructured
  2.    Structured
  3.    Semi-structured
  4.    All of the mentioned
 Discuss Question
Answer: Option A. -> Unstructured
Question 18. A collection and a document in MongoDB is equivalent to
  1.    Table and Column
  2.    Table and Row
  3.    Column and Row
  4.    Database and Table
 Discuss Question
Answer: Option B. -> Table and Row
Question 19. In the MongoDB shell, how can you tell if an index was used with a query?
  1.    db.customers.find({lastName: ‘smith’}).explain()
  2.    db.customers.find({lastName: ‘smith’}).perf()
  3.    db.customers.find({lastName: ‘smith’}).plan()
 Discuss Question
Answer: Option A. -> db.customers.find({lastName: ‘smith’}).explain()
Question 20. To restrict the number of records coming back from a query, which command should you use?
  1.    take
  2.    limit
  3.    max
  4.    skip
 Discuss Question
Answer: Option B. -> limit

Latest Videos

Latest Test Papers