MCQGeeks
CBSE
JEE
NTSE
NEET
English
UK Quiz
Quiz
Driving Test
Practice
Games
Quiz
Computer Science
Mongodb
Quiz 1
Solution
Q.1.
What is MongoDB?
A file system.
A SQL database.
A NoSQL database.
An Access database.
Q.2.
How to create a database in mongodb?
create databaseName
new databaseName
use databaseName
None of the above
Q.3.
Which of the following is used to start server in MongoDB?
mongod
mongo
start-mongo
start-mongo.sh
Q.4.
Which of the following is not a NoSQL database ?
SQL
MONGODB
CASSANDRA
NONE
Q.5.
How many bits involve in _id?
9
10
11
12
Q.6.
What is the interactive shell for MongoDB called?
mongo
mongodb
dbmong
None
Q.7.
Which of the following format is supported by MongoDB ?
XML
BSON
SQL
All
Q.8.
Which of the following is not part of _id?
Timestamp
machineID
processID
counter
documentID
Q.9.
What name is given to Record in MongoDB?
Collections
Fields
Documents
Database
Q.10.
Which of the following will display details of sName "Sumit"?
db.Students.find({sName: "Sumit"})
db.Students.find({sName: "Sumit"},{"sName":1, "GPA":1, "_id":0})
db.Students.find({sName: "Sumit"},{"sName":1, "GPA":0})
db.Students.find({sName: Sumit})
Q.11.
In which format MongoDB represents document structure?
BSON
.txt
.Docx
None of these
Q.12.
A collection and a document in MongoDB is equivalent to............. concepts respectively.
Table and Column
Table and Row
Column and Row
Database and Table
Q.13.
Here are _________ types of read requests that a coordinator can send to a replica
3
2
4
1
Q.14.
What is the equivalent command in MongoDB for the following SQL query?SELECT * FROM posts WHERE author like "%john%"
db.posts.find( { author: /john/ } )
db.posts.find( { author: {$like: /john/} } )
db.posts.find( { $like: {author: /john/} } )
db.posts.find( { author: /^john^/ } )
Q.15.
NoSQL databases is used mainly for handling large volumes of ______________ data.
Unstructured
Structured
Semi-structured
All of the mentioned
Q.16.
Which one of the following is equivalent in MongoDB select* from employee order by salary desc;?
db.employee.find.sort({“salary”:1}]
db.employee.sort ({“salary”:-1}]
db.employee.find.sort ({“salary”:-1}
db.employee.sort({“salary”:1}]
Q.17.
CRUD operation in mognodb are______
create read update drop
create read update delete
create read update local
none
Q.18.
Point out the wrong statement :
Non Relational databases require that schemas be defined before you can add data
NoSQL databases are built to allow the insertion of data without a predefined schema
NewSQL databases are built to allow the insertion of data without a predefined schema
all
Q.19.
Which of the following is a NoSQL Database Type
MONGODB
JSON
CASSANDRA
A & C
Q.20.
MongoDB has been adopted as ________ software by a number of major websites and services
backend
frontend
both
none
Support mcqgeeks.com by disabling your adblocker.
×
Please disable the adBlock and continue.
Thank you.
Reload page