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

  1. Question 41: Assuming that the math module has been successfully imported, which of the following expressions evaluate to True? (Choose two.)
  2. Question 43: What is the expected output of the following code? import sys b1 type (dir(sys)) is str b2 type (sys.path[-1]) is str print (b1 and b2)
  3. Question 46: Which of the following expressions evaluate to True? (Choose two.)
  4. Question 47: What is the expected behavior of the following code? the_string = ',,'.join(('alpha', 'omega')) the_list = the_string.split(',') print(',' in the list)
  5. Question 49: Which of the following expressions evaluate to True? (Choose two.)
  6. Question 50: Which of the following expressions evaluate to True? (Choose two.)
  7. Question 53: What is true about Python class constructors? (Choose two.)
  8. Question 54: What is true about Object-Oriented Programming in Python? (Choose two.)
  9. Question 62: What is the expected output of the following code? mytu = ('a', 'b', 'c') m = tuple(map(lambda x: chr(ord(x) + 1), mytu)) print(m[-2])
  10. Question 65: Which of the following lambda definitions are correct? (Choose two.)