1.

When is the finally block executed?(a) when there is no exception(b) when there is an exception(c) only if some condition that has been specified is satisfied(d) alwaysThe question was asked in an international level competition.The origin of the question is Exception Handling in division Classes and Objects, Inheritance, Polymorphism, Encapsulation and Exception Handling of Python

Answer»

The correct ANSWER is (d) always

For explanation: The FINALLY block is always EXECUTED.



Discussion

No Comment Found

Related InterviewSolutions