Python Institute PCAP-31-03 Exam Questions
Certified Associate in Python Programming Exam (Page 4 )

Updated On: 21-Feb-2026

What is the expected behavior of the following code?

  1. it outputs error
  2. it outputs list assignment index out of range
  3. the code is erroneous and it will not execute
  4. it outputs <class ' IndexError' >

Answer(s): B



Which of the following expression evaluate to True? (Select two answers)

  1. len('\'·) == 1
  2. len("""
    """) == o
  3. chr(ordCA') + 1) == 'B'
  4. ord("Z") - ord("z") -- ord("0")

Answer(s): B



What is the expected behavior of the following code?

  1. it raises an exception
  2. it outputs True
  3. it outputs False
  4. it outputs nothing

Answer(s): B



Which of the following expressions evaluate to True? (Select two answers)

  1. 121 + 1 != '!' + 2 * '2'
  2. 'AbC' lower () < 'AB'
  3. '1' + '1' + '1' < '1' * 3'
  4. '3.14' != str(3.1415)

Answer(s): A,D



Which of the following expressions evaluate to True? (Select two answers)

  1. str(1-1) in '012345£739'[:2]
  2. 'phd' in 'alpha'
  3. 'deb' not in 'abcde' [::-1]
  4. 'True' not in 'False'

Answer(s): C,D






Post your Comments and Discuss Python Institute PCAP-31-03 exam dumps with other Community members:

Join the PCAP-31-03 Discussion