Examveda

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

C. They are used to define custom error messages

D. None of the above

Answer: Option B


This Question Belongs to Ruby Programming >> Advanced Topics In Ruby

Join The Discussion

Related Questions on Advanced Topics in Ruby