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 6 discussion

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

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

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

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, 3 weeks ago
Selected Answer: D
A. Returns processor name (e.g. Intel64 Family 6 Model 158), not the platform. B. Returns a named tuple with system info (like OS, version, node, etc.), more detailed but not just the platform name. C. Returns Python version, e.g. "3.11.5" — unrelated to the platform. D. Returns a string that describes the underlying platform (OS name and version) like Windows-10-10.0.19045-SP0'
upvoted 1 times
...
thewoodsii81
9 months, 1 week ago
Selected Answer: D
d is the only one that calls platform
upvoted 1 times
...
Dave304409
1 year, 1 month ago
Selected Answer: D
is correct
upvoted 1 times
...
DKAT2023
1 year, 1 month ago
D is the correct
upvoted 1 times
...
herrmann69
1 year, 2 months ago
Selected Answer: D
Answer D is correct. platform.platform() code: import platform print(platform.processor()) print(platform.uname()) print(platform.python_version()) print(platform.platform()) output: Intel64 Family 6 Model 140 Stepping 1, GenuineIntel uname_result(system='Windows', node='xxx', release='11', version='10.0.22621', machine='AMD64') 3.12.3 Windows-11-10.0.22621-SP0
upvoted 4 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 ...