MongoDB
C100DBA · Question #21
Which of the following commands will return all the posts with number of likes greater than 100 and less than 200, both inclusive?
Sign in or unlock C100DBA to reveal the answer and full explanation for question #21. The question stem and answer options stay visible for context.
MongoDB Fundamentals
Question
Which of the following commands will return all the posts with number of likes greater than 100 and less than 200, both inclusive?
Options
- Adb.posts.find({ likes : { $gte : 100 , $lte : 200 } } );
- Bdb.posts.find({ likes : { $gt : 100 , $lte : 200 } } );
- Cdb.posts.find({ likes : { $gte : 100, $lt : 200 } } );
- Ddb.posts.find({ likes : { $gt : 100, $lt : 200 > > );
Unlock C100DBA to see the answer
You've previewed enough free C100DBA questions. Unlock C100DBA for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#$gte#$lte#range query#comparison operators