Vidyalelo
Ruby Programming · Q10

Exception Handling in Ruby

Programming · Ruby Programming · question 10

Q10

What happens if an exception is raised within a rescue block in Ruby?

A.
The program enters a loop to retry the operation
B.
The program continues execution as normal
C.
The program terminates with an error message
D.
The exception is handled by an outer rescue block, if present
Answer

Answer: Option D

Solution

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