Exam Details

  • Exam Code
    :PCAP
  • Exam Name
    :Certified Associate in Python Programming
  • Certification
    :PCAP
  • Vendor
    :Python Institute
  • Total Questions
    :153 Q&As
  • Last Updated
    :May 14, 2024

Python Institute PCAP PCAP Questions & Answers

  • Question 11:

    Which of the following lines of code will work flawlessly when out independently inside the inc() method in order to make the snippet's output equal to 3? (Choose two.)

    A. put(self.prop + val)

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

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

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

  • Question 12:

    What is the expected output of the following code?

    A. False

    B. 0

    C. None

    D. True

  • Question 13:

    With regards to the directory structure below, select the proper forms of the directives in order to import module_b. (Choose two.)

    A. from pyback.upper import module_b

    B. import pyback.upper.module_b

    C. import upper.module_b

    D. import module_b

  • Question 14:

    Assuming that the code below has been executed successfully, which of the following expressions will always evaluate to True? (Choose two.)

    A. v1 == v2

    B. v1 < 1

    C. random.choice([1,2,3]) > 0

    D. len(random.sample([1,2,3],1)) > 2

  • Question 15:

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

    A. `var' in Class.__dict__

    B. `var' in Object.__dict__

    C. len(Object.__dict__) == 1

    D. `prop' in Class.__dict__

  • Question 16:

    What is the expected behavior of the following code?

    A. it raises an exception

    B. it outputs nothing

    C. it outputs True

    D. it outputs False

  • Question 17:

    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

    B. 0

    C. an errno value corresponding to file not found

    D. 1

  • Question 18:

    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 19:

    What is the expected behavior of the following code?

    A. it outputs 321

    B. it outputs 123

    C. it outputs 6

    D. it raises an exception

  • Question 20:

    A Python module named pymod.py contains a variable named pyvar.

    Which of the following snippets will let you access the variable? (Choose two.)

    A. import pymod pymod.pyvar = 1

    B. import pyvar from pymod pyvar = 1

    C. from pymod import pyvar pyvar ()

    D. from pyfun import * pyvar = 1

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 exam preparations and Python Institute certification application, do not hesitate to visit our Vcedump.com to find your solutions here.