Which of the following blocks will be executed whether an exception is thrown or not?

a) except
b) else
c) finally
d) assert

1 thought on “ Which of the following blocks will be executed whether an exception is thrown or not?”

  1. c
    Explanation: The statements in the finally block will always be executed, whether an exception is thrown or not. This clause is used to close the resources used in a code.

Leave a Comment