Examveda
Examveda

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: Option D


This Question Belongs to Ruby Programming >> Exception Handling In Ruby

Join The Discussion

Related Questions on Exception Handling in Ruby

What is an exception in Ruby?

A. A way to group related methods and constants

B. A method for defining variables

C. An unexpected event that disrupts the normal flow of the program

D. A predefined object in Ruby