
GIAC Python Coder
Domain 1Objective 3
Control Structures and Iteration GPYC Practice Questions (Page 1)
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 14 practice questions to prepare you well beyond it. (estimate)
14questions here
3free pages
10concepts
Questions 1–5
- 1
A developer is writing a function that will be implemented later. They need to define the function now so the script parses without syntax errors, but the body is not yet written. Which statement should be used as a placeholder in the function body?
Select an answer first - 2
Given a = 10 and b = 20, which condition is True?
Select an answer first - 3
What is the purpose of the pass statement in Python?
Select an answer first - 4
Which statement correctly describes how to iterate over a dictionary in Python to access both keys and values?
Select an answer first - 5
What is the output of the following code? for i in range(5): if i == 3: break print(i) else: print('done')
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.