
MongoDB Quiz 1
Authored by Ade Hodijah
Computers
University
Used 12+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How should a jsonArray file be organized?
As a properly formatted JSON array
As YAML
As plain text
As a BSON object
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a MongoDB document's internal data structure?
JSON (JavaScript Object Notation)
BSON (Binary JSON)
ORM (object relational mode)
MBF (MongoDB binary format)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which projection only displays the FirstName and LastName fields of a customer collection document?
db.customers.find({}, {firstName: 1, lastName: 1})
db.customers.find({}, {_id:0, firstName: 1, lastName: 1})
db.customers.find({_id: 0, year: 1, maek: 1, model: 1})
db.customers.find({}).project({firstName: 1, lastName: 1})
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
MongoDB documents are atomic transaction at the level of...
Database
Field
No
Document
5.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
There is a given document from this query:
db.shoes.insertOne({type: "running", variation: [ { size: 43, color: "red" } ]})
Which of the following query for a document nested in an array?
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Documents are stored in MongoDB called
ODB objects
JavaScript objects
BSON objects
JSON objects
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Use the following syntax to search a collection and get a cursor object for the results
findAndModify()
query()
find()
findOne()
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?