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

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

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

    A. b() == 4

    B. a != b

    C. a is not None

    D. a() == 4

  • Question 33:

    What is the expected output of the following code?

    A. 3

    B. 5

    C. 4

    D. an exception is raised

  • Question 34:

    What is the expected behavior of the following code?

    A. it outputs [1, 3]

    B. the code is erroneous and it will not execute

    C. it outputs [3, 1]

    D. it outputs [4, 2, 0]

  • Question 35:

    What is the expected output of the following code if there is no file named non_existing_file inside the working directory?

    A. 1 2 4

    B. 1 2 3 4

    C. 2 4

    D. 1 3

  • Question 36:

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

    A. the length of the first line from the file

    B. -1

    C. the number of lines contained inside the file

    D. the length of the last line from the file

  • Question 37:

    What is the expected output of the following code?

    A. a

    B. c

    C. an exception is raised

    D. b

  • Question 38:

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

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

    B. self.queue.append(get_last() + 1)

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

    D. queue.append(self.get_last() + 1)

  • Question 39:

    A property that stores information about a given class's super-classes is named:

    A. __upper__

    B. __super__

    C. __ancestors__

    D. __bases__

  • Question 40:

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

    A. len(Class.__dict__) == 1

    B. ‘data’ in Class.__dict__

    C. ‘var’ in Class.__dict__

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