
GIAC Python Coder
Domain 1Objective 4
Functions, Classes and Objects GPYC Practice Questions (Page 7)
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 45 practice questions to prepare you well beyond it. (estimate)
45questions here
9free pages
14concepts
Questions 31–35
- 31
What is true about a class attribute in Python?
Select an answer first - 32
A developer is creating a Product class. They want print(product) to display a human-readable string like 'Product: Laptop - $999.99'. Which special method should they implement?
Select an answer first - 33
A utility class provides a helper function that converts a temperature from Celsius to Fahrenheit. This function does not need access to any instance or class data. Which method type should be used?
Select an answer first - 34
A developer is debugging a function that unexpectedly modifies a list passed by a caller. The function is intended to only read the list and return a new list with transformed values. Which code change would prevent the caller's list from being changed?
Select an answer first - 35
Which decorator is used to define a static method in a class?
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.