Official Bank 0/30

Python Institute PCEP – Certified Entry-Level Python Programmer (PCEP-30-02) - Python Exam Questions

Last updated on June 20, 2026

97% Exam Compliance
30 Total Questions
1
Question
What is the expected output of the following code?

Exhibit
Options
A 4
B The code outputs nothing.
C 1
D 3
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

2
Question
What is true about exceptions and debugging? (Select two answers.)
Select 2
Options
A The default (anonymous) except branch cannot be the last branch in the try-except block.
B A tool that allows you to precisely trace program execution is called a debugger.
C One try-except block may contain more than one except branch.
D If some Python code is executed without errors, this proves that there are no errors in it.
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

3
Question
What is the expected output of the following code?

Exhibit
Options
A The code raises an exception and outputs nothing.
B 5
C 6
D 4
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

4
Question
DRAG DROP Drag and drop the code boxes in order to build a program which prints Unavailable to the screen. (Note: one code box will not be used.)

Exhibit
Reveal Only
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

5
Question
DRAG DROP
Insert the code boxes in the correct positions in order to build a line of code which asks the user for
an integer value and assigns it to the depth variable. (Note: some code boxes will not be used.)

Exhibit
Reveal Only
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

Finish Practice?

Are you sure you want to finish? This will end your practice session.