GrabCert
HomeExamsProvidersAbout
Sign InSign Up
Home/Exams/MongoDB MongoDB Associate Database Administrator/Question #6
#6Multiple Choice

Given the following sample documents in the HR collection:
{ “name” : “A.S”, “age”: 23, “hobby”: [ “soccer”, “basketball” ]},
{ “name” : “B.M”, “age”: 36, “hobby”: [ “soccer”, “baseball” ]},
{ “name” : “C.W”, “hobby”: [ “basketball”, “cycling” ]},
{ “name” : “R.S”, “age”: 30, “hobby”: [ “soccer”, “cycling”, “baseball” ]},
{ “name” : “E.M”, “age”: 25, “hobby”: [ “cycling”, “basketball” ]}

What is the output of -
db.HR.find( { age: { $in: [ 25, 36] } }, { _id: 0} )

Previous
Question 6 of 152
Exam C100DBA Topic 1 Question 6
Back to all questions
Next
GrabCert

Your trusted source for certification exam preparation. Pass your exams with confidence.

Quick Links

  • Home
  • Exams
  • Providers

Legal

  • About
  • Contact Us
  • Refund Policy
  • Privacy Policy
  • Terms of Service

© 2026 GrabCert. All rights reserved.

Sign InSign Up