Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

MongoDB Exam C100DBA Topic 5 Question 106 Discussion

Actual exam question for MongoDB's C100DBA exam
Question #: 106
Topic #: 5
[All C100DBA Questions]

Which of the following commands will return all the posts with number of likes greater than 100 and less than 200, both inclusive?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Ilene
5 days ago
Option A looks like the correct one to me. It uses the $gte and $lte operators to get posts with likes between 100 and 200, inclusive.
upvoted 0 times
...
Evangelina
7 days ago
I'm not sure, but I think option C might also work because it uses $lt for less than 200.
upvoted 0 times
...
Kayleigh
8 days ago
I agree with Christene, option A makes sense because it includes both 100 and 200 in the range.
upvoted 0 times
...
Christene
15 days ago
I think the correct command is A) db.posts.find({ likes : { $gte : 100 , $lte : 200 } } );
upvoted 0 times
...

Save Cancel