Solved

Which of the Following Statements Is False

Question 11

Multiple Choice

Which of the following statements is false?


A) A try statement can have a finally clause as its last clause after any except clauses or else clause.
B) The finally clause is guaranteed to execute, regardless of whether its try suite executes successfully or an exception occurs.
C) In other languages that have finally, the finally suite is an ideal location to place resource-deallocation code for resources acquired in the corresponding try suite.
D) In Python, we prefer the else clause of a try statement for resource-deallocation code and place other kinds of "clean up" code in the finally suite.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions