Question

In MongoDB, which command correctly finds all documents in a collection "students" where age is greater than 20 and name starts with "A"?

A db.students.find({age: {$gt: 20}, name: /^A/})
B db.students.find({age > 20, name LIKE "A%"})
C db.students.find({$and: [{age: {$gte: 20}}, {name: "A%"}]})
D db.students.select({age: {$gt: 20}}, {name: starts("A")})
E db.students.query(age > 20 AND name LIKE "A%")
Practice Next

Hey! Ask a query

🎓
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
  • 200 Questions with Detailed Solutions
  • Section-wise Coverage (GA, English, Quant & Reasoning)