Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
GIAC (SANS) logo

GIAC Python Coder

Domain 1Objective 4

Functions, Classes and Objects 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 45 practice questions to prepare you well beyond it. (estimate)

45questions here
9free pages
14concepts

Questions 1–5

  1. 1application · easy

    A developer is writing a utility class 'StringUtils' with a method 'is_palindrome' that checks if a string is a palindrome. The method does not need any instance or class data. Which method definition is appropriate?

    Select an answer first
  2. 2expert · hard

    A developer is building a web framework. They need to apply multiple decorators to a single view function: one to check authentication and another to log requests. The decorators must run in a specific order: authentication first, then logging. Which stacking order achieves this?

    Select an answer first
  3. 3application · medium

    A system has a base class Animal with a method speak(). The team needs to create subclasses Dog and Cat that each provide their own speak() implementation. When a list of Animal objects is iterated, calling speak() should produce the correct sound for each type. Which design pattern achieves this?

    Select an answer first
  4. 4foundation · easy

    Which keyword is used to define a class in Python?

    Select an answer first
  5. 5application · medium

    A developer is building a 'BankAccount' class and wants to protect the 'balance' attribute from direct external modification, but still allow it to be read and updated through methods. Which approach best achieves this?

    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.