Complete the code to ensure the cleanup message is always printed.
begin puts 'Start' [1] end
The ensure block always runs, even if an error occurs.
Complete the code to print 'Cleanup done' regardless of errors.
begin puts 'Processing' raise 'Error occurred' [1] end
The ensure block runs no matter what, so 'Cleanup done' is always printed.
Fix the error in the code to ensure cleanup always runs.
begin puts 'Running' [1] puts 'Done' end
Only ensure guarantees the cleanup code runs regardless of errors.
Fill both blanks to print 'Start', handle errors, and always print 'Cleanup'.
begin puts 'Start' raise 'Oops' [1] [2] end
rescue handles errors, ensure always runs for cleanup.
Fill all three blanks to handle errors, print success message, and always cleanup.
begin puts 'Try block' raise 'Fail' [1] [2] [3] end
rescue catches errors, else runs if no error, ensure always runs for cleanup.
