Free PCAP sample questions

Real questions from the Certified Associate in Python Programming practice bank, with the correct answer and an explanation for each one. No junk, no filler.

Try them in the simulator Same questions, with study, timed and flashcard modes.

Showing 10 of 20 free sample questions.

Question 1Choose one

What will the value of the i variable be when the following loop finishes its execution?

Question 2Choose 2

Which of the listed actions can be applied to the following tuple? (Select two answers)

Question 3Choose one

Files with the suffix .pyc contain:

Question 4Choose one

A method for passing the arguments used by the following snippet is called:

Question 5Choose 2

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)

Question 6Choose 2

A class constructor (Select two answers)

Question 7Choose one

If you need to serve two different exceptions called Ex1 and Ex2 in one except branch, you can write:

Question 8Choose one

What is the expected output of the following snippet?

Question 9Choose one

A two-parameter lambda function raising its first parameter to the power of the second parameter should be declared as:

Question 10Choose one

The following class hierarchy is given. What is the expected out of the code?

10 more free samples are waiting

Create a free account to unlock the whole PCAP sample bank, or get full access to all 316 practice questions in the simulator.

Create account