Examveda

Which of the following is true about the finally clause in exception handling?

A. The code in the finally block always executes, regardless of whether an exception is raised or not

B. The finally block should always come before the try block

C. The finally block is optional

D. The code in the finally block executes only if an exception is caught

Answer: Option A


This Question Belongs to Python Program >> Exception Handling In Python

Join The Discussion

Related Questions on Exception Handling in Python