πŸ“Š Ruby
Q. How do you rescue an exception in Ruby?
  • (A) try ... catch
  • (B) begin ... rescue ... end
  • (C) catch ... rescue
  • (D) try ... except
πŸ’¬ Discuss
βœ… Correct Answer: (B) begin ... rescue ... end

Explanation: Ruby uses 'begin ... rescue ... end' for exception handling.

Explanation by: Rati Dubey
Ruby uses 'begin ... rescue ... end' for exception handling.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
46
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
96%
Success Rate