×

Special Offer! Black Friday + Cyber Monday Sale! Extra 20% OFF - Ends In Coupon code: HELLO20OFF

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: 24 Nov, 2025
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 happen after the following code snippet is run?
names = {'Tom': 10, 'Mary': 20}
names[20]

Options :
Answer: C

Question 3

Assuming that the following assignment has been successfully executed:

Which of the following expressions evaluate to True? (Select two expressions.)  

Options :
Answer: C,D

Question 4

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

Options :
Answer: C

Question 5

What will be the output of the following code?
x = [
    'a',
    'b',
    {
        'one': 1,
        'two':
        {
            'x' : 10,
            'y' : 20,
            'z' : 30
        },
        'three': 3
    },
    'c',
    'd'
]
print(30 in x[2])

Options :
Answer: D

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

© Copyrights FreeMockExams 2025. 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.