Python_Institute
PCPP-32-101 · Question #73
PCPP-32-101 Question #73: Real Exam Question with Answer & Explanation
Sign in or unlock PCPP-32-101 to reveal the answer and full explanation for question #73. The question stem and answer options stay visible for context.
Question
Select the true statements related to PEP 8 programming recommendations for exception handling. (Choose two.)
Options
- AYou should generally use "bare" except: classes, as they will not catch SystemExit and
- BWhen designing exception hierarchies, you should focus on stating that a problem occurred, rather
- CYou should generally limit the use of a "bare" except: clause and, whenever possible, use
- DYou should derive exceptions from the Exception class, rather than from the BaseException
Unlock PCPP-32-101 to see the answer
You've previewed enough free PCPP-32-101 questions. Unlock PCPP-32-101 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.