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

GIAC Python Coder

Domain 2Objective 2

Regular Expressions GPYC Practice Questions (Page 1)

Part of the Scripting and Automation domain, which makes up ~23% of our current practice bank. GIAC (SANS) does not publish an official question count, but from its 120-minute exam (~50–80 total, ~12–18 in this domain), expect 4–6 from this objective — we provide 16 practice questions to prepare you well beyond it. (estimate)

16questions here
4free pages
8concepts

Questions 1–5

  1. 1foundation · easy

    Why is it recommended to use raw strings (r'...') when writing regex patterns in Python?

    Select an answer first
  2. 2application · easy

    A data analyst needs to find all occurrences of the word `error` in a log, but only when it is NOT part of a longer word like `error404` or `error_handler`. Which regex pattern achieves this?

    Select an answer first
  3. 3foundation · easy

    In the pattern r'(\d{3})-(\d{4})', what does group(1) contain when matched against '555-1234'?

    Select an answer first
  4. 4foundation · easy

    Which character class in a regular expression matches any single digit?

    Select an answer first
  5. 5foundation · easy

    Which flag passed to re.compile() makes the pattern match case-insensitively?

    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.