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 2 of 6.

  1. Question 21: 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(4, 0, -1) if my_list[i] % 2 != 0] print(m)
  2. Question 23: Which of the following statements are true? (Choose two.)
  3. Question 24: A Python package named pypack includes a module named pymod.py which contains a function named pyfun(). Which of the following snippets will let you invoke the…
  4. Question 25: What is the expected behavior of the following code? the_list = "alpha;beta;gamma".split(";") the_string = ''.join(the_list) print(the_string.isalpha())
  5. Question 26: A property that stores information about a given class’s super-classes is named:
  6. Question 33: What is true about Object-Oriented Programming in Python? (Choose two.)
  7. Question 34: What is true about Python class constructors? (Choose two.)
  8. Question 35: What is the expected output of the following code? myli = range (-2,2) m = list(filter(lambda x: True if abs(x) < 1 else False, myli)) print(len(m))
  9. Question 38: What is true about lambda functions? (Choose two.)
  10. Question 39: Which of the following expressions evaluate to True? (Choose two.)