MongoDB Basics Quiz Questions

Last Updated :
Discuss
Comments

Question 1

Which of the following is NOT a type of NoSQL database?

  • Document-based

  • Key-Value

  • Graph-based

  • Relational

Question 2

What format does MongoDB use to store data?

  • XML

  • BSON

  • CSV

  • JSON

Question 3

Which of the following commands is used to check the list of databases in MongoDB shell?

  • show databases

  • list dbs

  • display databases

  • db.list()

Question 4

What is the default port for MongoDB server?

  • 27017

  • 8080

  • 5432

  • 3306

Question 5

In MongoDB, what is the equivalent of a "table" in relational databases?

  • Field

  • Document

  • Collection

  • Index

Question 6

How can you install MongoDB on Windows?

  • Using pip install mongodb

  • Using MongoDB MSI Installer

  • Running npm install mongodb

  • Installing via apt-get install mongodb

Question 7

Which MongoDB tool provides a graphical interface for managing databases?

  • MongoDB Shell

  • MongoDB Compass

  • MongoDB CLI

  • MongoDB Studio

Question 8

What is the purpose of an ObjectId in MongoDB?

  • It ensures unique identifiers for documents

  • It acts as a primary key in collections

  • It contains timestamp information

  • All of the above

Question 9

What is the primary function of MongoDB Atlas?

  • To provide a cloud-based MongoDB database service

  • To visualize query execution plans

  • To act as an alternative to MongoDB Compass

  • To perform offline backups of local databases

Question 10

What is BSON in MongoDB?

  • A text-based format similar to JSON

  • A relational database format

  • A binary representation of JSON

  • A compressed SQL format

Tags:

There are 10 questions to complete.

Take a part in the ongoing discussion