
Python InstitutePCAP - Certified Associate Python Programmer
Domain 1Objective 4
PCAP-31-03 1.4 Discover Host Platform Properties Using the Platform Module PCAP-31 Practice Questions (Page 4)
Part of the Modules and Packages domain, which accounts for 12% of the PCAP-31 exam. Python Institute does not publish an official question count, but from its 65-minute exam (~25–45 total, ~3–5 in this domain), expect 1–1 from this objective — we provide 18 practice questions to prepare you well beyond it. (estimate)
18questions here
4free pages
7concepts
12%of the exam
Questions 16–18
- 16
A DevOps engineer is writing a Python diagnostic script that must log a single human-readable line identifying the host OS and its version. The script will run on both Linux and Windows machines, and the engineer wants the most concise output without separate calls. Which function should be used?
Select an answer first - 17
Which platform module function returns the system's release version information as a string, such as '10.0.19041' on Windows?
Select an answer first - 18
A Python script must detect if it is running on a Windows system to apply Windows-specific paths. The developer is considering using platform.system() vs platform.platform(). Which statement correctly describes the trade-off?
Select an answer first
Finished these 3 questions?
Review the revealed explanations, or continue through the curriculum.
No more pagesBack to PCAP-31
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 Python Institute. “PCAP-31” is a trademark of its owner, used for identification only.