Home »
MCQs »
Python MCQs
Is Python supports exception handling?
12. Is Python supports exception handling?
- Yes
- No
Answer: A) Yes
Explanation:
Unexpected events that can occur during a program's execution are referred to as exceptions, and they can cause the program's normal flow to be interrupted. Python provides exception handling, which allows us to write less error-prone code while also testing various scenarios that may result in an exception later on in the process.