1.

Which of the following will display complete list of available cursor flags?(a) cursor.Option()(b) cursor.addOption()(c) cursor.addOptions()(d) all of the mentionedThis question was addressed to me at a job interview.I need to ask this question from Read Operations topic in chapter MongoDB CRUD Concepts and Operation of MongoDB

Answer» RIGHT CHOICE is (b) cursor.addOption()

The explanation: You should EITHER close the cursor manually or EXHAUST the cursor.


Discussion

No Comment Found

Related InterviewSolutions