PCAP-31-03 Practice Test

PCAP-31-03 Practice Test practice questions, page 2 of 5, with answer review and explanations.

Question 6

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

  1. platform.processor()
  2. platform.uname()
  3. platform.python_version()
  4. platform.platform()

Question 7

What is the expected behavior of the following code?

  1. the code is erroneous and it will not execute
  2. it outputs 1
  3. it outputs 2
  4. it outputs 0

Question 8

Which of the following snippets will execute without raising any unhandled exceptions? (Choose two.)

Question 9

What is the expected behavior of the following code?

  1. it outputs 3
  2. it outputs 1
  3. it outputs 2
  4. the code is erroneous and it will not execute

Question 10

What is true about the following snippet? (Choose two.)

  1. the string what a pity will be seen
  2. the string it's nice to see you will be seen
  3. the code will raise an unhandled exception
  4. the string I feel fine will be seen