Big Halloween Sale 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: sale65best

Free Python Institute PCEP-30-02 Practice Exam with Questions & Answers

Questions 1

Which of the following functions can be invoked with two arguments?

A)

PCEP-30-02 Question 1

B)

PCEP-30-02 Question 1

C)

PCEP-30-02 Question 1

D)

PCEP-30-02 Question 1

Options:
A.

Option A

B.

Option B

C.

Option C

D.

Option D

Python Institute PCEP-30-02 Premium Access
Questions 2

Assuming that the following assignment has been successfully executed:

My_list – [1, 1, 2, 3]

Select the expressions which will not raise any exception.

(Select two expressions.)

Options:
A.

my_list[-10]

B.

my_list|my_Li1st | 3| I

C.

my list [6]

D.

my_List- [0:1]

Questions 3

What is the expected result of the following code?

PCEP-30-02 Question 3

Options:
A.

The code is erroneous and cannot be run.

B.

20

C.

10

D.

30

Questions 4

What is the expected output of the following code?

PCEP-30-02 Question 4

Options:
A.

1

B.

The code raises an unhandled exception.

C.

False

D.

('Fermi ', '2021', 'False')

Questions 5

What is true about tuples? (Select two answers.)

Options:
A.

Tuples are immutable, which means that their contents cannot be changed during their lifetime.

B.

The len { } function cannot be applied to tuples.

C.

An empty tuple is written as { } .

D.

Tuples can be indexed and sliced like lists.

Questions 6

Arrange the code boxes in the correct positions to form a conditional instruction which guarantees that a certain statement is executed when the speed variable is less than 50.0.

PCEP-30-02 Question 6

Options:
Questions 7

What is true about exceptions and debugging? (Select two answers.)

Options:
A.

A tool that allows you to precisely trace program execution is called a debugger.

B.

If some Python code is executed without errors, this proves that there are no errors in it.

C.

One try-except block may contain more than one except branch.

D.

The default (anonymous) except branch cannot be the last branch in the try-except block.

Questions 8

What is the expected output of the following code?

PCEP-30-02 Question 8

Options:
A.

5

B.

4

C.

6

D.

The code raises an exception and outputs nothing.

Questions 9

How many hashes (+) does the code output to the screen?

PCEP-30-02 Question 9

Options:
A.

one

B.

zero (the code outputs nothing)

C.

five

D.

three

Questions 10

What happens when the user runs the following code?

PCEP-30-02 Question 10

Options:
A.

The code outputs 3.

B.

The code outputs 2.

C.

The code enters an infinite loop.

D.

The code outputs 1.

Exam Code: PCEP-30-02
Certification Provider: Python Institute
Exam Name: PCEP - Certified Entry-Level Python Programmer
Last Update: Oct 30, 2025
Questions: 42
PDF + Testing Engine
$164.99
$57.75
Testing Engine
$124.99
$43.75
PDF (Q&A)
$104.99
$36.75

Python Institute Free Exams

Python Institute Free Exams
Examstrack offers free Python Institute exam materials and practice tests to aid your Python Institute certification journey.