nerdexam
MongoDB

C100DBA · Question #43

In a collection that contains 100 post documents, what does the following command do? db. posts. find().skip(5).limit(5)

Sign in or unlock C100DBA to reveal the answer and full explanation for question #43. The question stem and answer options stay visible for context.

MongoDB Fundamentals

Question

In a collection that contains 100 post documents, what does the following command do? db. posts. find().skip(5).limit(5)

Options

  • ASkip and limit nullify each other. Hence returning the first five documents.
  • BSkips the first five documents and returns the next five
  • CLimits the first five documents and then return them in reverse order
  • DSkips the first five documents and returns the sixth document five times

Unlock C100DBA to see the answer

You've previewed enough free C100DBA questions. Unlock C100DBA for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#skip#limit#cursor methods#pagination
Full C100DBA Practice