Sunday, 10 May 2020

AsCEnD Mongo DB

Mongo DB Fundamentals Assessment

Q1. Which of the following are popular columnar databases?

Answer: All are correct

Q2. Collection and a document in MongoDB is equivalent to which of the SL concepts respectively

Answer: Table and Row

Q3. is the command in mongodb that is equivalent of SQL's truncate

Answer: db.col.remove()

Q4. What is the name of default storage engine in MongoDB?

Answer: MMAPV1

Q5. The following statement is True or False?

NoSQL database is not viewed as a replacement to RDBMS but Rather, a complementary addition to RDBMS and SQL.

Answer: FALSE

Q6. What does the following query do when performed on the posts collection?

db.posts.update({_id:1),($Set:{Author:Tom"}})

Answer: Both B & C

Q7. _________ is the method used to limit the records in mongoDB.

Answer: Limit()

Q8. Objectid is a 12-byte BSON type in which the last 3 bytes represent

Answer: The machine identifier

Q9. MongoDB is a leading NoSQL classified as a document-oriented database State True or False?

Answer: TRUE

Q10. ________ is the method used to display results in a formatted way

Answer: Preety()

Q11. Which of the following is equilant opeartor on NoSQL for SQL SELECT operator?

Answer: $out

Q12. You want to return maximum 10 matching documents that will return with only the id name and address fields. Which of the following queries will you use?

Answer: db.users.find({age: {$gt:18}}, {name:1, address:1}).limit(10)

Q13. Which of the following are NOSQL Traits?

Answer: All are correct

Q14. Which of the following are correct classification of NoSQL databases?

Answer: All are correct

Q15. Which among the following is the way to access the different documents in the result set?

Answer: Sort

No comments:

Post a Comment