πŸ“Š Ruby
Q. Which statement will execute at the end of the code, whether the exception raise or not?
  • (A) retry
  • (B) raise
  • (C) ensure
  • (D) else
πŸ’¬ Discuss
βœ… Correct Answer: (C) ensure

Explanation: statement ensures that required instructions will execute at the end of the code, whether the exception raise or raised exception is rescued, or the program terminates due to an uncaught exception.

Explanation by: Yatendra Sir
statement ensures that required instructions will execute at the end of the code, whether the exception raise or raised exception is rescued, or the program terminates due to an uncaught exception.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
185
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Yatendra Sir
Publisher
πŸ“ˆ
91%
Success Rate