mongodb

Quiz
•
Computers
•
KG
•
Hard
abdel abdel
Used 51+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does the following MongoDB command return?
db.posts.find( { likes : { $gt : 100 }, likes : { $lt : 200 } } );
Posts with likes greater than 100 but less than 200
Posts with likes greater than or equal to 100 but less than or equal to 200
Posts with likes less than 200
Will return syntax error
2.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
What does the output x of the following MongoDB aggregation query result into:
db.posts.aggregate( [ { $group: { _id: "$author", x: { $sum: �$likes� } } } ] )
Average of likes on all the posts of an author, grouped by author
Number of posts by an author
Sum of likes on all the posts by an author, grouped by author
Sum of likes on all the posts by all the authors
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The _______ operator can be used to identify an element in the array to be updated without explicitly specifying the position of the element.
$
$elemMatch
$slice
Updating an array field without knowing its index is not possible.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
NoSQL databases is used mainly for handeling large volumes of ........... data
structured
unstructured
semi-structured
None of above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is supported by MongoDB?
BSON
JSON
XML
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following dynamic schema phenomenon is made easier for the
application by MongoDB?
Polymorphism
Encapsulation
Inheritance
None of above
7.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
Which of the following commands will find all the posts that have been tagged as tutorial.
db.posts.find( { tags : "tutorial" } );
db.posts.find( { tags : ["tutorial"] } );
db.posts.find( { $array : {tags: "tutorial"} } );
db.posts.findInArray( { tags : "tutorial" } );
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Programming - Arrays

Quiz
•
2nd - 12th Grade
14 questions
PHP

Quiz
•
12th Grade
10 questions
PHP Rus

Quiz
•
10th Grade
12 questions
Web Apps 03 - MongoDB

Quiz
•
University
10 questions
Code.org ~ HTML & CSS Basics

Quiz
•
6th - 8th Grade
13 questions
Quiz-O-Tech Final Round

Quiz
•
University
15 questions
[Python For All] Quiz 5 - Numpy

Quiz
•
University
15 questions
HTML Quiz

Quiz
•
7th - 12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade