PCAP-31-03 practice question 20 of 25
Which one of the platform module functions should be used to determine the underlying platform name?
Full set: 147 questionsplatform.platform() returns a single descriptive string identifying the underlying platform (OS name, release, version, etc.). It is the dedicated helper for obtaining the platform name.
A. platform.uname() returns a named-tuple with several fields, not just the platform name.
C. platform.pythonversion() reports only the Python interpreter version.
D. platform.processor() returns the processor/CPU name only.
1. Python 3 Standard Library, “platform — Access to underlying platform-identifying data”, sec. 37.1.1, docs.python.org/3/library/platform.html#platform.platform
2. Python 3 Std. Lib., same section, Example code (paragraph 2).
Keep practicing
Take the free PCAP-31-03 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other PCAP-31-03 practice questions
- Question 3How many elements will the list2 list contain after execution of the following snippet? l…
- Question 6Select the valid fun () invocations: (select two answers) def fun (a, b=0): return a*b
- Question 7Is it possible to safely check if a class object has a certain attribute0
- Question 10Which of the equations are True? (Select two answers)
- Question 13Which of the following lambda function definitions are correct? (Select two answers)
- Question 15Which of the following invocations are valid? (Select two answers)
