Vidyalelo
Ruby Programming · Q68

Advanced Topics in Ruby

Programming · Ruby Programming · question 68

Q68

What is the purpose of the retry keyword in Ruby?

A.
It resumes execution at the beginning of the block where an exception was rescued
B.
It re-runs the entire program from the beginning
C.
It raises an exception if an error occurs during method execution
D.
It restarts the current iteration of a loop
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board