Direction: Choose the correct option
Q1.
Which method updates a single document that matches a filter?
Direction: Choose the correct option
Q2.
What is the purpose of the `$set` operator in an update operation?
Direction: Choose the correct option
Q3.
How would you increment the 'views' field by 1 for a specific document?
Direction: Choose the correct option
Q4.
What does `db.users.updateMany({}, {$set: {active: true}})` do?
Direction: Choose the correct option
Q5.
Which operator is used to add an element to an array field?
