πŸ“Š Problem Solving and Python Programming
Q. Which of the following blocks will be executed whether an exception is thrown or not?
  • (A) except
  • (B) else
  • (C) finally
  • (D) assert
πŸ’¬ Discuss
βœ… Correct Answer: (C) finally

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.


Explanation by: Mr. Dubey
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.

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
425
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
85%
Success Rate