nerdexam
MongoDB

C100DBA · Question #43

C100DBA Question #43: Real Exam Question with Answer & Explanation

The correct answer is B. Skips the first five documents and returns the next five. See the full explanation below for the reasoning.

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

Community Discussion

No community discussion yet for this question.

Full C100DBA Practice