Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Which of the following method is called while accessing documents using the array index notation?

a) cur.toArray()
b) cursor.toArray()
c) doc.toArray()
d) all of the mentioned

Answer: b
Explanation: The toArray() method returns an array that contains all the documents from a cursor.

Join The Discussion