adplus-dvertising
frame-decoration

Question

Which of the following operation adds a new document to the users collection?

a.

add

b.

insert

c.

truncate

d.

drop

Posted under MongoDB

Answer: (b).insert

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following operation adds a new document to the users collection?

Similar Questions

Discover Related MCQs

Q. Which of the following preference determines how the client direct read operations to the set?

Q. Applications can also control the behavior of write operations using _______ concern.

Q. MongoDB process collection of documents using _________ operations.

Q. Which of the following pipeline is used for aggregation in MongoDB?

Q. The order of documents returned by a query is not defined unless you specify a ______

Q. Point out the correct statement.

Q. In aggregation pipeline, the _______ pipeline stage provides access to MongoDB queries.

Q. Which of the following method returns one document?

Q. Point out the wrong statement.

Q. Which of the following is the second argument to projection?

Q. Which of the following query selects documents in the records collection that match the condition { “user_id”: { $lt: 42 } }?

Q. Which of the following functionality is used for aggregation framework?

Q. To suppress the _id field from the result set, specify _________ in the projection document.

Q. Which of the following is not a projection operator?

Q. Which of the following flag can be set by mongo shell?

Q. Point out the correct statement.

Q. Which of the following will display complete list of available cursor flags?

Q. To describe the message structure, a ________ like struct is used.

Q. Point out the wrong statement.

Q. ______________ specifies the number of documents to return in each batch of the response from the MongoDB instance.