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?”
Leave a Comment
You must be logged in to post a comment.
a) except
b) else
c) finally
d) assert
You must be logged in to post a comment.
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.