Exam Details

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

Python Institute PCAP PCAP Questions & Answers

  • Question 1:

    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? (Choose two.)

    A. ClassA.__module__ == `__main__'

    B. __name__ == `__main__'

    C. str(Object) == `Object'

    D. len(ClassB.__bases__) == 2

  • Question 2:

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

    string = `SKY'[::-1] string = string[-1]

    A. string[0] == `Y'

    B. string[0] == string [-1]

    C. string is None

    D. len(string) == 1

  • Question 3:

    Which of the following invocations are valid? (Choose two.)

    A. sort("python")

    B. "python".find("")

    C. "python".rindex("th")

    D. `python'.sorted()

  • Question 4:

    What is the expected output of the following snippet?

    A. True lower

    B. True upper

    C. False upper

    D. False lower

  • Question 5:

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

    A. `in' in `Thames'

    B. `in' in `in'

    C. `in not' in `not'

    D. `t'.upper() in `Thames'

  • Question 6:

    What is the expected behavior of the following code?

    A. it outputs 2

    B. it raises an exception

    C. it outputs 1

    D. it outputs 0

  • Question 7:

    What is the expected behavior of the following code?

    A. it outputs 0

    B. the code is erroneous and it will not execute

    C. it outputs 1

    D. it outputs 2

  • Question 8:

    Assuming that the following inheritance set is in force, which of the following classes are declared properly? (Choose two.)

    A. class Class_3(A,C): pass

    B. class Class_4(C,B): pass

    C. class Class_1(D): pass

    D. class Class_2(A,B): pass

  • Question 9:

    What is the expected behavior of the following code?

    A. 4

    B. 3

    C. an exception is raised

    D. 5

  • Question 10:

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

    A. there can be only one constructor in a Python class

    B. the constructor cannot be invoked directly under any circumstances

    C. the constructor cannot return a result other than None

    D. the constructor's first parameter must always be named self

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.