mongodb

mongodb

KG

12 Qs

quiz-placeholder

Similar activities

HTML -Basic Structure

HTML -Basic Structure

6th Grade

10 Qs

MongoDB

MongoDB

University

12 Qs

NCAS_Videomarketing&Social media

NCAS_Videomarketing&Social media

University

10 Qs

Basic HTML Tags I

Basic HTML Tags I

9th - 12th Grade

11 Qs

Year 7 DT 2021 HC

Year 7 DT 2021 HC

7th Grade

10 Qs

PHP

PHP

12th Grade

14 Qs

PHP Rus

PHP Rus

10th Grade

10 Qs

PHP Rus

PHP Rus

10th Grade

10 Qs

mongodb

mongodb

Assessment

Quiz

Computers

KG

Hard

Created by

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

Media Image

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?