
GIAC Python Coder
Domain 3Objective 1
Network Interfaces GPYC Practice Questions (Page 1)
Part of the Network and Web Interaction domain, which makes up ~25% of our current practice bank. GIAC (SANS) does not publish an official question count, but from its 120-minute exam (~50–80 total, ~13–20 in this domain), expect 4–7 from this objective — we provide 17 practice questions to prepare you well beyond it. (estimate)
17questions here
4free pages
4concepts
Questions 1–5
- 1
A Python script must retrieve the netmask for each IPv4 address on a Windows machine. The script can use third-party libraries. Which code snippet correctly retrieves the netmask?
Select an answer first - 2
Which netifaces function retrieves a dictionary of address families and associated addresses for a specific network interface?
Select an answer first - 3
Which function from the netifaces library returns a list of all available network interface names on the current system?
Select an answer first - 4
A network administrator wants to write a Python script that prints the MAC address of the primary Ethernet interface on a Linux server. The script will be run manually by administrators and can use third-party libraries. Which code snippet accomplishes this?
Select an answer first - 5
A Python tool must list all network interface names on a Windows machine without using third-party libraries. Which standard-library function can provide this list?
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.