πŸ“Š Ruby
Q. What is the purpose of the else keyword in Ruby exception handling?
  • (A) To execute code regardless of whether an exception occurs or not
  • (B) To manually raise an exception
  • (C) To begin an exception handling block
  • (D) To execute code when no exceptions are raised
πŸ’¬ Discuss
βœ… Correct Answer: (D) To execute code when no exceptions are raised

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
106
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
91%
Success Rate