题目
题目

IS 4485-001 Fall 2025 Final Exam Practice 1

单项选择题

Which of the following best explains why you might use a custom exception?

选项
A.To bypass try-except blocks
B.To prevent inheritance
C.To avoid using raise
D.To speed up runtime
E.To replace built-in exceptions
F.To create more meaningful and specific error messages
查看解析

查看解析

标准答案
Please login to view
思路分析
Question: Which of the following best explains why you might use a custom exception? Option 1: To bypass try-except blocks. In reality, custom exceptions are typically used within try-except blocks to catch and handle specific error conditions; they do not serve to bypass these blocks. This option misunderstands the role of exceptions in control flow. Option 2: To speed up runtime. Custom exceptions do not inherently speed up......Login to view full explanation

登录即可查看完整答案

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

更多留学生实用工具

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