MongoDB C100DBA Question Answer
A collection named products contains the following documents:
{ " _id " : 1, " name " : " Laptop " , " price " : 1500 }
{ " _id " : 2, " name " : " Smartphone " , " price " : 800 }
{ " _id " : 3, " name " : " Tablet " , " price " : 600 }
{ " _id " : 4, " name " : " Monitor " , " price " : 300 }
{ " _id " : 5, " name " : " Headphones " , " price " : 200 }
Given the following query:
db.products.find().sort({ " price " : -1 }).limit(2)
What is the expected output?

