Multimedia Test System
 
STUDENT
 
FACULTY
 
SCHOOL
 
SUPPORT
 
PUBLIC
 
SIGNUP
DAILY QUIZ
 
     
  M U L T I M E D I A    T E S T    S Y S T E M
 
Question of the Day for 4/26/2025
 
Subject: MongoDB


In the collection items with documents as follows, how do you find items which with dim_cm being either 14 or 21 in any order?


{ item: "journal", qty: 25, tags: ["blank", "red"], dim_cm: [ 14, 21 ] },
{ item: "notebook", qty: 50, tags: ["red", "blank"], dim_cm: [ 21, 14] }
  1. db.items.find( { dim_cm: [14, 21] } )
  2. db.items.find( {$or : [{dim_cm: 14}, {dim_cm : 21}]} )
  3. db.items.find({dim_cm : {$all : [14, 21]}})
  4. none of the above

Email Subscriptions: To receive Question of the Day via email, sign up for a student account and subscribe to the mailing lists of your choice on AP, SAT, and MCAT exams and college subjects.
     
 
Blog Posts    News Digest    Contact Us    About Developer    Privacy Policy

©1997-2025 ecourse.org. All rights reserved.