Python Institute PCEP-30-02 Answers

Page:    1 / 114   
Total 569 questions | Updated On: Sep 30, 2026
Question 1

Which statements are true about the following function definition?
def my_func(x=1):
return x


Answer: B,D
Question 2

Which of the following does the Python interpreter verify before executing Python code?


Answer: B
Question 3

What will be the output of the following code?
def func(a):
global x
b = x + a
return b
x = 2
print(func(4))


Answer: C
Question 4

What will be the output of the following code?
def show_truth():
    mysterious_var.append('New Surprise!')
    print(mysterious_var)
 
mysterious_var = ['Surprise!']
print(mysterious_var)
show_truth()
print(mysterious_var)


Answer: B
Question 5

What will be the output after the following code snippet?
temp_list = [3, 1, -2]
print(temp_list[temp_list[-1]])


Answer: A
Page:    1 / 114   
Total 569 questions | Updated On: Sep 30, 2026

Quickly grab our PCEP-30-02 product now and kickstart your exam preparation today!

Name: Certified Entry-Level Python Programmer
Exam Code: PCEP-30-02
Certification: PCEP
Vendor: Python Institute
Total Questions: 569
Last Updated: Sep 30, 2026