Vidyalelo
Python · Q65

Exception Handling in Python

Programming · Python · question 65

Q65

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
Answer
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

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board