
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 2)
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 6–10
- 6
A developer is writing a Python script that must check if the running Python version is exactly 3.10. The check must be done programmatically without parsing strings. Which function should be used to obtain the version in a comparable format?
Select an answer first - 7
A Python script must generate a unique identifier for a fleet of servers. The identifier must be stable across reboots and include the OS name, version, and architecture. The script should use the platform module and produce a single string. Which approach is most reliable?
Select an answer first - 8
A Python script must log the Python version in a format like '3.10.4' for a bug report. The developer wants to use platform.python_version_tuple() and join the elements. Which code snippet correctly produces the desired format?
Select an answer first - 9
Which platform module function returns the hardware architecture of the host, such as 'AMD64' or 'arm64'?
Select an answer first - 10
Which platform module function returns a single string that combines the operating system name and its version details, such as 'Windows-10-10.0.19041-SP0'?
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 Python Institute. “PCAP-31” is a trademark of its owner, used for identification only.