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

GIAC Python Coder

Domain 1Objective 2

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

37questions here
8free pages
12concepts

Questions 26–30

  1. 26foundation · easy

    What is the difference between the list.sort() method and the sorted() function?

    Select an answer first
  2. 27application · medium

    A system administrator has a dictionary 'services' mapping service names to port numbers. The admin needs to produce a list of service names sorted by port number in descending order. Which expression yields this list?

    Select an answer first
  3. 28foundation · easy

    What is the result of the following code? ```python d = {'a': 1, 'b': 2} keys = list(d.keys()) print(keys) ```

    Select an answer first
  4. 29application · medium

    A system administrator has a string of comma-separated values: data = 'host1,host2,host3'. The administrator needs to split this string into a list of hostnames, strip any whitespace, and then join them with a colon for a configuration file. Which code produces 'host1:host2:host3'?

    Select an answer first
  5. 30foundation · easy

    What is the result of the following dictionary comprehension? ```python {k: k*2 for k in [1, 2, 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.