Certified Associate in Python Programming Free Sample Questions

Description

Covers importing and using Python modules and packages, exception handling and custom exceptions, string representation and built-in methods, object-oriented programming, and list comprehension.

20 free sample questions316 in the full practice test

Try simulator

PCAP Sample Questions

  1. Question 1

    What is the expected behavior of the following code?

    It will:

    Question 1 image
    Answer and explanation

    Correct answer: B

    B

  2. Question 2

    Multiple answers

    Which of the equations are True? (Select two answers)

    Answer and explanation

    Correct answers: A, D

    A, D

  3. Question 5

    Files with the suffix .pyc contain:

    Answer and explanation

    Correct answer: D

    D

  4. Question 7

    Multiple answers

    You need data which can act as a simple telephone directory. You can obtain it with the following clauses (Select two relevant variants; assume that no other items have been created before)

    Answer and explanation

    Correct answers: C, D

    C, D

  5. Question 8

    Multiple answers

    A class constructor (Select two answers)

    Answer and explanation

    Correct answers: A, D

    A, D

  6. Question 10

    What is the expected output of the following snippet?

    Question 10 image
    Answer and explanation

    Correct answer: A

    A

Register free for 10 more questions

Or unlock all 316 PCAP questions with explanations, timed mode and flashcards.