Exam PCAP-31-03 All QuestionsBrowse all questions from this exam
Question 6

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

    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
herrmann69Option: 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

Dave304409Option: D

is correct

DKAT2023Option: D

D is the correct