Free PCEP-30-02 Mock Exam – Practice Online Confidently

Increase your chances of passing the Python Institute PCEP-30-02 exam questions on your first try. Practice with our free online PCEP-30-02 exam mock test designed to help you prepare effectively and confidently.

Exam Code: PCEP-30-02
Exam Questions: 569
Certified Entry-Level Python Programmer
Updated: 05 Jan, 2026
Question 1

What will be the output of the following code?
print(1 | 0 ^ 1 & ~0)

Options :
Answer: B

Question 2

What will be the output of the following code snippet?
dict1 = {'one': 1, 'two': 2, 'three': 3}
dict2 = {'one': 1, 'two': 5, 'four': 8}
dict3 = dict(dict1)
dict4 = dict(dict2)
dict3.update(dict2)
dict4.update(dict1)
print(dict3 == dict4)

Options :
Answer: C

Question 3

What will happen after the following code snippet is run?
names = {'Tom': 10, 'Mary': 20}
names[20]

Options :
Answer: C

Question 4

What will be the output of the following code?
def get_number():
    for i in []:
        yield i
 
print(next(get_number()))

Options :
Answer: B

Question 5

What will be the output of the following code?
def func(a):
if a > 5:
return a
return a + func(a+1)
 
print(func(4))

Options :
Answer: C

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

© Copyrights FreeMockExams 2026. All Rights Reserved

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