
GIAC Python Coder
Domain 1Objective 5
Exception Handling GPYC Practice Questions (Page 3)
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 11–15
- 11
What does the 'args' attribute of an exception instance contain?
Select an answer first - 12
A team is building a library that validates user input. They need to raise an error when a username is already taken. The error should be catchable by code that already handles ValueError, but should also be distinguishable from other ValueErrors. What should they do?
Select an answer first - 13
When is the else clause in a try/except block executed?
Select an answer first - 14
In a try block with multiple except clauses, how does Python decide which except clause to execute?
Select an answer first - 15
What is a typical use case for the finally clause?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
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.