And operator able to perform bitwise shifts is coded as (Choose two.)
Select an option, then click Submit answer.
- ○ --
- ○ ++
- ○ <<
- ○ >>
Loading demo links...
Showing 1–14 of 14 questions
And operator able to perform bitwise shifts is coded as (Choose two.)
Select an option, then click Submit answer.
What is the expected output of the following snippet?

Select an option, then click Submit answer.
How many lines does the following snippet output?

Select an option, then click Submit answer.
What is the expected output of the following snippet?

Select an option, then click Submit answer.
Can a module run like regular code?
Select an option, then click Submit answer.
What is the expected behavior of the following snippet? It will:

Select an option, then click Submit answer.
Which line can be used instead of the comment to cause the snippet to produce the following expected output? (Choose two.) Expected output: 1 2 3 Code:

Select an option, then click Submit answer.
What is the expected output of the following code?

Select an option, then click Submit answer.
What is the expected behavior of the following code? It will:

Select an option, then click Submit answer.
Assuming that the snippet below has been executed successfully, which of the following expressions evaluate to True? (Choose two.) string = 'python'[::2] string = string[-1] + string[-2]
Select an option, then click Submit answer.
Assuming that the code below has been executed successfully, which of the expressions evaluate to True? (Choose two.)

Select an option, then click Submit answer.
With regards to the directory structure below, select the proper forms of the directives in order to import module_b. (Choose two.)

Select an option, then click Submit answer.
Assuming that the following inheritance set is in force, which of the following classes are declared properly? (Choose two.)

Select an option, then click Submit answer.
What is the expected behavior of the following code?

Select an option, then click Submit answer.
This free practice test covers the Certified Associate in Python Programming (PCAP) exam from Python Institute. The 14 questions are a free sample of the full Study4Pass practice set of 141 questions, so you can check your level before you commit to the real exam. The free sample is made up of 14 single-answer questions, each with a full explanation. Questions are spread across the areas that matter most on the real exam: Python syntax, Data types, Control structures and Functions. The duration of the Python Institute PCAP-31-02 Exam is 65 minutes.
The Python Institute PCAP-31-02 exam is designed for individuals who want to demonstrate their knowledge and skills in Python programming. There are no prerequisites for Python Institute PCAP-31-02 Exam.
Treat this sample as a diagnostic. Answer honestly, check the explanation after every question, and note which topics feel shaky. A short, focused review of those topics is worth more than re-reading everything — and the full set lets you drill them topic by topic.
A good way to use this page: take the whole sample in one sitting, then go back over every explanation with fresh eyes. Mark the topics that felt uncertain, not just the ones you got wrong — uncertain answers are unmarked risk on the real exam. One or two focused passes like this usually move a score more than days of passive reading.
Inside the full PCAP practice set:
Answer a question, then check the result to see the correct answer and the explanation behind it. Work at your own pace — there is no timer and no signup. Stuck on a concept? This is an AI-Enabled practice test: use Ask AI on any question and get the underlying concept explained in plain words, so you learn the reasoning instead of memorizing answers. Ready for more? The full 141-question set adds a timed Exam Simulation mode, topic training for your weak areas, and a flagged-question review, so you can practise the way the real exam feels.
Yes — the 14 questions on this page are completely free, with no signup and no payment details needed.
141 questions. The 14 free questions above are a sample of that full set, in the same style and topic balance.
Yes — every question shows the correct answer with an explanation, and Ask AI can explain the concept behind a question in plain words if you want to go deeper.
No. This is a practice test: the questions are written to mirror the real PCAP exam’s topics and difficulty, not copied from it.