PCEP – Certified Entry-Level Python Programmer

Here you have the best Python Institute PCEP-30-02 practice exam questions

  • You have 471 total questions across 95 pages (5 per page)
  • These questions were last updated on February 21, 2026
  • This site is not affiliated with or endorsed by Python Institute.
Question 1 of 471

Insert the correct snippet so that the program produces the expected output.
Expected output:
Exam PCEP-30-02: Question 1 - Image 1
Code:
Exam PCEP-30-02: Question 1 - Image 2
Answer

Suggested Answer

The suggested answer is C.

To get the output as True, we need to evaluate the given list with a condition that results in True. The correct answer is to check if 0 is in the list. In Python, the boolean value False is equivalent to 0. Therefore, the expression '0 in list' will return True because False is present in the list. The correct snippet is 'b = 0 in list'.

Community Votes20 votes
CSuggested
75%
A
20%
B
5%
Question 2 of 471

Assuming that the tuple is a correctly created tuple, the fact that tuples are immutable means that the following instruction:
Exam PCEP-30-02: Question 2 - Image 1
Answer

Suggested Answer

The suggested answer is A.

Tuples in Python are immutable, which means their elements cannot be changed once they are created. Any operation that tries to modify the contents of a tuple, such as assigning a new value to an element of a tuple, will result in a TypeError. Therefore, the statement 'my_tuple[1] = my_tuple[1] + my_tuple[0]' is illegal because it attempts to change an element of the tuple.

Community Votes12 votes
ASuggested
83%
B
17%
Question 3 of 471

What is the expected output of the following code?
Exam PCEP-30-02: Question 3 - Image 1
Answer

Suggested Answer

The suggested answer is B.

Community Votes10 votes
BSuggested
100%
Question 4 of 471

What is the expected output of the following code?
Exam PCEP-30-02: Question 4 - Image 1
Answer

Suggested Answer

The suggested answer is C.

When the code executes, list1 and list2 both refer to the same list object in memory. Therefore, any modification to list1 will also reflect in list2. When list1[0] is assigned the value 4, the change is also reflected in list2. As a result, printing list2 will output [4, 3].

Community Votes11 votes
CSuggested
100%
Question 5 of 471

What is the expected output of the following code?
Exam PCEP-30-02: Question 5 - Image 1
Answer

Suggested Answer

The suggested answer is C.

The print(data[1:3]) statement uses list slicing to extract a sublist from the data list. In Python, list slicing is done using the syntax list[start:stop], where 'start' is the index where the slice begins (inclusive) and 'stop' is the index where the slice ends (exclusive). For the given list data: ['Peter', 404, 3.03, 'Wellert', 33.3], the slice data[1:3] will include the elements at indices 1 and 2, which are 404 and 3.03, respectively. Therefore, the expected output is [404, 3.03].

Community Votes3 votes
CSuggested
100%

About the Python Institute PCEP-30-02 Certification Exam

About the Exam

The Python Institute PCEP-30-02 (PCEP – Certified Entry-Level Python Programmer) validates your knowledge and skills. Passing demonstrates proficiency and can boost your career prospects in the field.

How to Prepare

Work through all 471 practice questions across 95 pages. Focus on understanding the reasoning behind each answer rather than memorizing responses to be ready for any variation on the real exam.

Why Practice Exams?

Practice exams help you familiarize yourself with the question format, manage your time, and reduce anxiety on the test day. Our PCEP-30-02 questions are regularly updated to reflect the latest exam objectives.