Vidyalelo
Ruby Programming · Q4

Exception Handling in Ruby

Programming · Ruby Programming · question 4

Q4

What happens if an exception is raised but not rescued in Ruby?

A.
The program prompts the user to fix the error
B.
The program enters a loop to retry the operation
C.
The program continues execution as normal
D.
The program terminates with an error message
Answer

Answer: Option D

Solution

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