MongoDB Questions and Answers Part-1

1. Which of the following language is MongoDB written in?
a) Javascript
b) C
c) C++
d) All of the mentioned

Answer: d
Explanation: MongoDB (from humongous) is a cross-platform document-oriented database.

2. Point out the correct statement.
a) MongoDB is classified as a NoSQL database
b) MongoDB favours XML format more than JSON
c) MongoDB is column oriented database store
d) All of the mentioned

Answer: a
Explanation: MongoDB supports JSON format compared to XML.

3. Which of the following format is supported by MongoDB?
a) SQL
b) XML
c) BSON
d) All of the mentioned

Answer: c
Explanation: MongoDB eschews the traditional table-based relational database structure in favor of JSON-like documents with dynamic schemas.

4. MongoDB Queries can return specific fields of documents which also include user-defined __________ functions.
a) Javascript
b) C
c) C++
d) All of the mentioned

Answer: a
Explanation: MongoDB supports search by field, range queries, regular expression searches.

5. Point out the wrong statement.
a) Secondary indices are not available in MongoDB
b) MongoDB supports search by field, range queries, regular expression searches
c) MongoDB can store the business subject in the minimal number of documents
d) All of the mentioned

Answer: a
Explanation: Any field in a MongoDB document can be indexed.

6. Initial release of MongoDB was in the year?
a) 2000
b) 2005
c) 2009
d) 2011

Answer: c
Explanation: MongoDB is developed by the software company 10gen in October 2007 as a component of a planned platform as a service product.

7. MongoDB has been adopted as ________ software by a number of major websites and services.
a) frontend
b) backend
c) proprietary
d) all of the mentioned

Answer: b
Explanation: MongoDB is the most popular NoSQL database system.

8. MongoDB is a _________ database that provides high performance, high availability, and easy scalability.
a) graph
b) key value
c) document
d) all of the mentioned

Answer: c
Explanation: Documents (objects) map nicely to programming language data types.

9. Dynamic schema in MongoDB makes ____________ easier for applications.
a) inheritance
b) polymorphism
c) encapsulation
d) none of the mentioned

Answer: b
Explanation: Relational databases require that schemas be defined before you can add data.

10. With ________ MongoDB supports a complete backup solution and full deployment monitoring.
a) MMS
b) AMS
c) CMS
d) DMS

Answer: a
Explanation: MMS stands for MongoDB Management Service and is available to all users in the cloud and on-premises as part of MongoDB Standard and Enterprise Subscriptions.