
GIAC Python Coder
Domain 1Objective 5
Exception Handling GPYC Practice Questions (Page 5)
Part of the Python Fundamentals domain, which makes up ~43% of our current practice bank. GIAC (SANS) does not publish an official question count, but from its 120-minute exam (~50–80 total, ~22–34 in this domain), expect 4–7 from this objective — we provide 25 practice questions to prepare you well beyond it. (estimate)
25questions here
5free pages
12concepts
Questions 21–25
- 21
What is the main benefit of using the else clause in a try/except block?
Select an answer first - 22
What is a recommended best practice when catching exceptions?
Select an answer first - 23
A payment processing module needs to signal a specific business rule violation when an account has insufficient funds. The team wants to catch this condition separately from generic runtime errors. Which approach is the most appropriate?
Select an answer first - 24
What is the primary purpose of exception handling in Python?
Select an answer first - 25
Why is it recommended to inherit from Exception rather than BaseException when creating custom exceptions?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
No more pagesBack to GPYC
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by GIAC (SANS). “GPYC” is a trademark of its owner, used for identification only.