Vidyalelo
Ruby Programming · Q20

Exception Handling in Ruby

Programming · Ruby Programming · question 20

Q20

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

A.
To execute code regardless of whether an exception occurs or not
B.
To manually raise an exception
C.
To begin an exception handling block
D.
To execute code when no exceptions are raised
Answer

Answer: Option D

Solution

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