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

GIAC Python Coder

Domain 1Objective 4

Functions, Classes and Objects GPYC Practice Questions (Page 6)

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 26–30

  1. 26foundation · easy

    Which method is called when an object is about to be destroyed?

    Select an answer first
  2. 27foundation · easy

    What is the output of `(lambda x: x * 2)(5)`?

    Select an answer first
  3. 28foundation · easy

    Which keyword is used to create an anonymous function in Python?

    Select an answer first
  4. 29application · medium

    A developer is designing a logging system with a base class 'Logger' that has a 'log' method. They want to create a 'FileLogger' subclass that writes to a file, and a 'ConsoleLogger' subclass that prints to the console. Both subclasses should be usable interchangeably through the base class interface. Which design best achieves this?

    Select an answer first
  5. 30foundation · easy

    What is the process of creating an instance of a class called?

    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.