Certified Associate in Python Programming Free Sample Questions

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 to unlock 10 more sample questions

Lifetime One

Own this practice test forever.

$79.99
$75.99
one-time
  • Full access to 316 questions
  • Study, Timed & Flashcard Modes
  • All past and future versions i
  • Detailed Explanations
  • Study Tracking & Past Attempts
  • Brainy AI Assistant
  • Lifetime updates

Two

Any 2 exams per month.

$20.00/exam
$39.99
/month
  • 2 active exam slots
  • Study, Timed & Flashcard Modes
  • All past and future versions i
  • Detailed Explanations
  • Study Tracking & Past Attempts
  • 1,000 Brainy AI Credits
  • Cancel anytime

Premium Twelve

Any 12 exams over 3 months.

$15.00/exam
$179.99
/3 months
  • 4 active exam slots
  • Study, Timed & Flashcard Modes
  • All past and future versions i
  • Detailed Explanations
  • Study Tracking & Past Attempts
  • 15,000 Brainy AI Credits
  • Dedicated support
  • Friend seat included — full access

Trusted by professionals at

NvidiaSupabaseGitHubOpenAITursoClerkClaude AIAmazon