Vidyalelo
Ruby Programming · Q3

Exception Handling in Ruby

Programming · Ruby Programming · question 3

Q3

What is the purpose of the rescue keyword in Ruby?

A.
To handle exceptions and execute alternative code paths
Answer
B.
To define a new module
C.
To create a new instance of a class
D.
To add module methods to a single object

Answer: Option A

Solution

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