MongoDB - Sample Interview Question (Junior Level)

How will you query all items names which contains the word 'green'?
  1.  db.items.find({"name": "green"})

  2.  db.items.find({"name": ".*green.*"})
  3. db.items.find({"name": /.*green.*/})
  4.  db.items.find($like{"name": "green"})
Tests in MongoDB for Juniors

Test Name Difficulty Time (minutes) No. of Questions
MongoDB Online Test for Juniors MongoDB Junior 20 10