Ruby - Error Handling
Which of the following is true about the
begin/rescue/end block in Ruby?begin/rescue/end block in Ruby?rescue runsrescue block executes only if an exception is raised inside the begin block.begin always runs first, end is mandatory, and rescue does not run before begin.rescue runs only if an exception occurs -> Option C15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions