Home / Programming MCQs / Ruby MCQs / Question

V

Vinay Kumar • 8.55K Points
Tutor III

Q. Which statement is used to restarts the invocation of the iterator call?

(A) break
(B) next
(C) redo
(D) retry
Explanation by: Vinay Kumar
If retry appears in the iterator, the block, or the body of the for expression, restarts the invocation of the iterator call. Arguments to the iterator is re-evaluated.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.