A

Admin • 828.03K Points
Coach

Q. Which keyword is used to raise an exception in Ruby?

  • (A) throw
  • (B) raise
  • (C) catch
  • (D) error
  • Correct Answer - Option(B)
  • Views: 12
  • Filed under category Ruby
  • Hashtags:

Explanation by: Admin
The raise keyword is used to throw an exception.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.