
GIAC Python Coder
Domain 1Objective 3
Control Structures and Iteration 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 14 practice questions to prepare you well beyond it. (estimate)
14questions here
3free pages
10concepts
Questions 11–14
- 11
Which expression evaluates to True?
Select an answer first - 12
What is the output of the following code? x = 5 if x > 3: print('A') elif x > 4: print('B') else: print('C')
Select an answer first - 13
A security script iterates over a list of file hashes. It should process each hash unless the hash is in a 'quarantined' set. If a hash is quarantined, the script should skip it and move to the next. Which loop control statement should be used inside the for loop?
Select an answer first - 14
What is the output of the following code? x = 0 while x < 3: print(x) x += 1
Select an answer first
Finished these 4 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.