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

GIAC Python Coder

Domain 1Objective 1

Python Basics GPYC Practice Questions (Page 4)

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 33 practice questions to prepare you well beyond it. (estimate)

33questions here
7free pages
17concepts

Questions 16–20

  1. 16foundation · easy

    Which standard library module would you use to get the current working directory?

    Select an answer first
  2. 17foundation · easy

    What is the output of the following code? x = 5 if x > 10: print('A') elif x > 3: print('B') else: print('C')

    Select an answer first
  3. 18expert · medium

    A system administrator is merging two lists of server names. The script must combine the lists and remove any duplicate server names, preserving the original order of first occurrence. Which code snippet correctly performs this deduplication while maintaining order?

    Select an answer first
  4. 19application · easy

    A developer is writing a script that extracts the domain name from an email address. The email address is stored in a variable 'email' as 'user@example.com'. The script must extract everything after the '@' symbol. Which code snippet correctly performs this string operation?

    Select an answer first
  5. 20foundation · easy

    What is the output of the following list comprehension? [x * 2 for x in range(3)]

    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.