exam questions

Exam PCAP-31-03 All Questions

View all questions & answers for the PCAP-31-03 exam

Exam PCAP-31-03 topic 1 question 72 discussion

Actual exam question from Python Institute's PCAP-31-03
Question #: 72
Topic #: 1
[All PCAP-31-03 Questions]

Which one of the platform module functions should be used to determine the underlying OS version?

  • A. platform.processor()
  • B. platform.version()
  • C. platform.python_version()
  • D. platform.python_version_tuple()
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Abbribas
1 month, 2 weeks ago
Selected Answer: B
A. platform.processor() – ❌ Returns the CPU type, not the OS version. B. platform.version() – ✅ Returns the underlying OS version (e.g., kernel/build number). C. platform.python_version() – ❌ Returns the Python interpreter version, not the OS. D. platform.python_version_tuple() – ❌ Returns the Python version as a tuple, still not OS-related.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...