Vidyalelo
Ruby Programming · Q46

Advanced Topics in Ruby

Programming · Ruby Programming · question 46

Q46

What is the purpose of the catch and throw keywords in Ruby?

A.
They are used for error handling in asynchronous code
B.
They provide a way to break out of nested loops or blocks
Answer
C.
They are used to define custom error messages
D.
None of the above

Answer: Option B

Solution

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