Vidyalelo
Ruby Programming · Q13

Exception Handling in Ruby

Programming · Ruby Programming · question 13

Q13

What is the purpose of the retry keyword in Ruby exception handling?

A.
To begin an exception handling block
B.
To manually raise an exception
C.
To retry the operation that caused the exception
Answer
D.
To execute code regardless of whether an exception occurs or not

Answer: Option C

Solution

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