CBSE Class 12

Computer Science

01 Exception Handling in Python

30
Total
0
Attempted
0
Correct
0
Wrong
00:00:00
Q-1
What is the purpose of exception handling in Python?
Easy Introduction
A To handle runtime errors gracefully
B To stop the program immediately
C To improve compilation speed
D To avoid writing functions
Answer: To handle runtime errors gracefully
Explanation: Exception handling allows a program to deal with runtime errors without crashing.