Find all the products that have price within a range

Question | Sep 13, 2016 | hkumar 

We have these documents in a mongoDB collection products:

{ _id: 1, name: "Sony CD Player", price: 300, quantity: 12  } 
{ _id: 2, name: "Samsung LCD TV", price: 1020, quantity: 10 } 
{ _id: 3, name: "PlayStation 4", price: 400, quantity: 7  } 

Which one of following query documents can return all the products that have 300 <= price < 1000? The expected documents in result are "Sony CD Player" and "PlayStation 4".

2015 nextptr