Vidyalelo
Ruby Programming · Q8

Exception Handling in Ruby

Programming · Ruby Programming · question 8

Q8

What is the purpose of using exception handling in Ruby?

A.
To define instance methods in a class
B.
To create a new instance of a class
C.
To add module methods to a single object
D.
To gracefully handle errors and prevent program crashes
Answer

Answer: Option D

Solution

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