Exam Details

  • Exam Code
    :PCAP-31-03
  • Exam Name
    :PCAP - Certified Associate in Python Programming
  • Certification
    :Python Institute Certifications
  • Vendor
    :Python Institute
  • Total Questions
    :153 Q&As
  • Last Updated
    :May 08, 2025

Python Institute Python Institute Certifications PCAP-31-03 Questions & Answers

  • Question 11:

    Assuming that the following code has been executed successfully, select the expressions which evaluate to True (Select two answers) A. a is b

    B. b( ) > 2

    C. a() > 2

    D. a is not None

  • Question 12:

    What is true about Python class constructors? (Choose two.)

    A. there can be more than one constructor in a Python class

    B. the constructor must return a value other than None

    C. the constructor is a method named __init__

    D. the constructor must have at least one parameter

  • Question 13:

    What is the expected output of the following snippet?

    A. True False

    B. True True

    C. False False

    D. False True

  • Question 14:

    What is the expected behavior of the following code?

    A. the code is erroneus and it will not execute

    B. it outputs [2, 4]

    C. it outputs [4, 2]

    D. it outputs [0, 1, 2, 3, 4]

  • Question 15:

    Which of the following lines of code will work flawlessly when put independently inside the add_new () method in order to make the snippet's output equal to [0, 1, 21 ? (Select two answers)

    A. self.queue.append(get_Iast() + 1)

    B. queue.append(self.get last () + 1)

    C. self.queue.append(self.queue[+1]

    D. self.queue.append(self.get last() +1)

  • Question 16:

    Which of the following lines of code will work flawlessly when put independently inside the inc ( ) method in order to make the snippet's output equal to 3? (Select two answers) A. put (self.prop + vaI)

    B. self.put (self.get ( ) + vaI)

    C. self.put (get ( ) + vaI)

    D. self.put (self.prop + vaI)

  • Question 17:

    What is the expected output of the following code?

    A. 2

    B. 3

    C. 4

    D. an exception is raised

  • Question 18:

    What is the expected output of the following code?

    def foo(x,y):

    return y(x) + (x+1) print (Foo(1,lambda x: x*x))

    A. 3

    B. 5

    C. 4

    D. an exception is raised

  • Question 19:

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

    A. ' t '.upper () in 'Thames'

    B. 'in not' in 'not'

    C. 'not' not in 'in'

    D. 'a' not in 'ABC' .lower ()

  • Question 20:

    Assuming that the code below has been executed successfully, which of the following expressions evaluate to True? (Select two answers)

    A. 'var' in Object.__dict__

    B. 'prop' in Class.__dict

    C. len(Object.__diet__) == 1

    D. 'var1 in Class, dict

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Python Institute exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your PCAP-31-03 exam preparations and Python Institute certification application, do not hesitate to visit our Vcedump.com to find your solutions here.