Python Institute PCAP-31-03 - Certified Associate in Python Programming Exam
Page: 2 / 23
Total 111 questions
Question #6 (Topic: Exam A)
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()
Answer: D
Question #7 (Topic: Exam A)
What is the expected behavior of the following code?

A. the code is erroneous and it will not execute
B. it outputs 1
C. it outputs 2
D. it outputs 0
Answer: C
Question #8 (Topic: Exam A)
Which of the following snippets will execute without raising any unhandled exceptions? (Choose two.)
A.
B.
C.
D.




Answer: AB
Question #9 (Topic: Exam A)
What is the expected behavior of the following code?

A. it outputs 3
B. it outputs 1
C. it outputs 2
D. the code is erroneous and it will not execute
Answer: A
Question #10 (Topic: Exam A)
What is true about the following snippet? (Choose two.)

A. the string what a pity will be seen
B. the string it's nice to see you will be seen
C. the code will raise an unhandled exception
D. the string I feel fine will be seen
Answer: BD