Vidyalelo
Ruby Programming · Q12

Exception Handling in Ruby

Programming · Ruby Programming · question 12

Q12

What is the primary purpose of the else keyword in Ruby exception handling?

A.
To manually raise an exception
B.
To execute code when no exceptions are raised
Answer
C.
To begin an exception handling block
D.
None of the above

Answer: Option B

Solution

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