
GIAC Python Coder
Domain 1Objective 3
Control Structures and Iteration GPYC Practice Questions (Page 2)
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 6–10
- 6
Which code snippet uses pass correctly as a placeholder?
Select an answer first - 7
What does the following code print? for i in range(3): print(i)
Select an answer first - 8
Which nested loop structure correctly iterates over a 2D list (list of lists) and prints each element?
Select an answer first - 9
What is the result of the following list comprehension? [x * 2 for x in range(4)]
Select an answer first - 10
Which statement correctly describes the behavior of the enumerate() and zip() functions in Python?
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.