Home »
MCQs »
MongoDB MCQs
Cursor is a pointer to the result set of a ___
14. Cursor is a pointer to the result set of a ___.
- Query
- Table
- Dataset
- None of the mentioned above
Answer: A) Query
Explanation:
The cursor is a pointer to the result set of a query, as explained above. In order to retrieve results, clients can iterate through a cursor. In this case, the Cursor is a MongoDB Collection of the document that is returned as a result of the find method being executed. By default, it is automatically executed as a loop, which is undesirable. We can, on the other hand, request a specific index document from the cursor that was returned. It works in the same way as a pointer those points to a specific index value in a database.