Identify the incorrect statement about exception handling in python.
Identify the incorrect statement about exception handling in python.
Solution
✅ Correct Option: 2
The finally block executes always, whether or not an exception occurs, and even if the exception is not caught. It is used for clean-up tasks such as closing files or releasing resources. So saying it runs "only if the exception occurs" is incorrect.
Option 1: This is true, since except, else and finally clauses can only be written with a try block.
Option 3: This is true, as raise manually triggers an exception, for example .
Option 4: This is true, since one try can have several except blocks, each handling a different exception type.
Related questions:
2026: 23 May Shift 1