Certified Associate in Python Programming (PCAP-31-03) — Question 13

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

Answer options

Correct answer: D

Explanation

The correct answer is D, as platform.platform() returns a string that identifies the OS name and version. The other options provide different types of information, such as processor details (A), system information (B), and Python version (C), but do not specifically indicate the underlying platform name.