Certified Associate in Python Programming (PCAP-31-03) Free Practice Exam Questions

57 real Certified Associate in Python Programming (PCAP-31-03) exam questions with answers and AI explanations. Python Institute certification prep — page 5 of 6.

  1. Question 86: What is the expected output of the following code? myli = [1, 2, 4] m = list(map(lambda x: 2**x, myli)) print(m[-1])
  2. Question 87: What is the expected behavior of the following code? my_list = [i for i in range(5)] m = [my_list[i] for i in range(5) if my_list[i] % 2 != 0] print(m)
  3. Question 88: What is true about Python packages? (Choose two.)
  4. Question 89: Which one of the platform module functions should be used to determine the underlying OS version?
  5. Question 90: Which one of the platform module functions should be used to determine the Python version?
  6. Question 91: What is true about Python packages? (Choose two.)
  7. Question 92: What is the expected output of the following code? import sys import math b1 = type(dir(math)[0]) is str b2 = type(sys.path[-1]) is str print(b1 and b2)
  8. Question 95: Assuming that the code below has been executed successfully, which of the following expressions will always evaluate to True? (Choose two.) import random rando…
  9. Question 97: Which of the following statements are true? (Choose two.)
  10. Question 101: A Python module named pymod.py contains a function named pyfun(). Which of the following snippets will let you invoke the function? (Choose two.)