题目
题目

IS 4485-001 Fall 2025 Final Exam Practice 2

单项选择题

In Python exception handling, what is the purpose of finally?

选项
A.It defines custom error messages
B.It always executes whether or not an exception occurs
C.It runs only when no exception occurs
D.It stops program execution
E.It catches unhandled exceptions
查看解析

查看解析

标准答案
Please login to view
思路分析
In Python exception handling, the concept of finally is being examined, so we evaluate each option against the behavior of try/except/finally blocks. Option 1: "It defines custom error messages". This is misleading because customizing error messages is typically done when raising exceptions or handl......Login to view full explanation

登录即可查看完整答案

我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!