Examveda
Examveda

What is the purpose of the raise keyword in Ruby?

A. To begin an exception handling block

B. To manually raise an exception

C. To ensure code execution regardless of exceptions

D. To begin an exception handling block

Answer: Option B


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