Complete the code to find documents where the field "age" is exactly 25.
db.collection.find({"age": [1] })The filter {"age": 25} finds documents where the age field equals 25 exactly.
Complete the code to find documents where "score" is greater than 80.
db.collection.find({"score": { [1]: 80 }})The operator "$gt" means "greater than". So this filter finds documents with score > 80.
Fix the error in the query to find documents where "status" is not "active".
db.collection.find({"status": { [1]: "active" }})The operator "$ne" means "not equal to". It filters documents where status is not "active".
Fill both blanks to find documents where "age" is at least 18 and less than 30.
db.collection.find({"age": { [1]: 18, [2]: 30 }})"$gte" means "greater than or equal to" 18, and "$lt" means "less than" 30, so this finds ages between 18 and 29.
Fill all three blanks to find documents where "score" is greater than 50, "status" is "active", and "age" is less than 40.
db.collection.find({"score": { [1]: 50 }, "status": [2], "age": { [3]: 40 }})"$gt" filters scores greater than 50, "status" must equal "active", and "$lt" filters ages less than 40.