Exam Code: PCEP-30-02
Exam Questions: 569
Certified Entry-Level Python Programmer
Updated: 23 Sep, 2026
Viewing Page : 1 - 57
Practicing : 1 - 5 of 569 Questions
Question 1

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)

Options :
Answer: B

Question 2

What will be the output after running the following code?
my_list = [3, 5, 2]
my_list.insert(1, 2)
my_list.append(3)
print(my_list)

Options :
Answer: B

Question 3

What will be the output after running the following code?
dict = {}
dict[0] = 'Work'
dict['Hobby'] = ['Sport', 'Languages']
print(dict)

Options :
Answer: C

Question 4

What will be the output of the following code?
def first(x):
        return x ** x
 
def second(x):
        return first(x) + first(x)
 
print(second(3))

Options :
Answer: A

Question 5

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

Options :
Answer: A

Viewing Page : 1 - 57
Practicing : 1 - 5 of 569 Questions

© Copyrights FreePDFQuestions 2026. All Rights Reserved

We use cookies to ensure that we give you the best experience on our website (FreePDFQuestions). If you continue without changing your settings, we'll assume that you are happy to receive all cookies on the FreePDFQuestions.