PCAP-31-03 Exam QuestionsBrowse all questions from this exam

PCAP-31-03 Exam - Question 6


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

Show Answer
Correct Answer: D

The function platform.platform() should be used to determine the underlying platform name. This function returns a single string identifying the underlying platform with as much useful information as possible, which typically includes the system, release, and version.

Discussion

3 comments
Sign in to comment
herrmann69Option: D
Jun 4, 2024

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

DKAT2023Option: D
Jun 28, 2024

D is the correct

Dave304409Option: D
Jul 4, 2024

is correct