Exit C100DBA MongoDB Certified DBA Associate (Based on MongoDB 4.4)
Question 1 of 5
0% complete
Q1 Single choice

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

  • A

    db.posts.find({ likes : { $gte : 100 , $lte : 200 } } );

  • B

    db.posts.find({ likes : { $gt : 100 , $lte : 200 } } );

  • C

    db.posts.find({ likes : { $gte : 100, $lt : 200 } } );

  • D

    db.posts.find({ likes : { $gt : 100, $lt : 200 > > );

Previous Next