PCAP-31-03 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 30, 2026

Python Institute PCAP-31-03 Online Questions & Answers

  • Question 91:

    What is the expected output of the following code if the file named non_zero_length_existing_text_file is a non-zero length file located inside the working directory?

    A. -1
    C. an errno value corresponding to file not found
    D. 1

  • Question 92:

    What will the value of the i variable be when the following loop finishes its execution?

    A. 10
    B. the variable becomes unavailable
    C. 11
    D. 9

  • Question 93:

    What is the expected behavior of the following code?

    A. it raises an exception
    B. it outputs 0
    C. it outputs 3
    D. it outputs `None'

  • Question 94:

    Which of the following statements are true? (Choose two.)

    A. if invoking open () fails, an exception is raised
    B. open () requires a second argument
    C. open () is a function which returns an object that represents a physical file
    D. instd, outstd. errstd are the names of pre-opened streams

  • Question 95:

    Assuming that the code below has been placed inside a file named code.py and executed successfully, which of the following expressions evaluate to True?

    A. len(ClassB.__bases__) ==2
    B. ClassA.__module__ == `__main__'
    C. __name__ == `code.py'
    D. str(Object) == `Object'

  • Question 96:

    Assuming that the following snippet has been successfully executed, which of the equations are False? (Select two answers)

    A. len(a)== len (b)
    B. a [0]-1 ==b [0]
    C. a [0]== b [0]
    D. b [0] - 1 ==a [0]

  • Question 97:

    What is the expected behavior of the following code?

    A. it outputs 3
    B. the code is erroneous and it will not execute
    C. it outputs 1
    D. it outputs 2

  • Question 98:

    A keyword (Select two answers)

    A. can be used as an identifier
    B. is defined by Python's lexis
    C. is also known as a reserved word
    D. cannot be used in the user's code

  • Question 99:

    Which of the following expressions evaluate to True? (Choose two.)

    A. ord("z") - ord("Z") == ord("0")
    B. len(""" """) > 0
    C. chr(ord(`a') + 1) == `B'
    D. len(`\'') == 1

  • Question 100:

    Which of the following expressions evaluate to True? (Choose two.)

    A. ord("Z") - ord("z") == ord("0")
    B. chr(ord(`A') +1) == `B'
    C. len(`\'') == 1
    D. len(""" """) == 0

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.