PCEP-30-02

Practice PCEP-30-02 Exam

Is it difficult for you to decide to purchase Python Institute PCEP-30-02 exam dumps questions? CertQueen provides FREE online PCEP – Certified Entry-Level Python Programmer PCEP-30-02 exam questions below, and you can test your PCEP-30-02 skills first, and then decide whether to buy the full version or not. We promise you get the following advantages after purchasing our PCEP-30-02 exam dumps questions.
1.Free update in ONE year from the date of your purchase.
2.Full payment fee refund if you fail PCEP-30-02 exam with the dumps

 

 Full PCEP-30-02 Exam Dump Here

Latest PCEP-30-02 Exam Dumps Questions

The dumps for PCEP-30-02 exam was last updated on Jul 15,2025 .

Viewing page 1 out of 5 pages.

Viewing questions 1 out of 26 questions

Question#1

What is the expected output of the following code?
print(1 / 1)

A. 1.0
B. This can not be predicted.
C. 1
D. This can not be evaluated.

Explanation:
Topic: division operator
Try it yourself:
print(1 / 1) # 1.0
All you have to know here is,
that the division operator always returns a float.
Even if it is operating with two integers.

Question#2

5
2

A. C

Explanation:
Topic: arithmetic operators
Try it yourself:
a = 28
b = 8
print(a / b) # 3.5
print(a // b) # 3
print(a % b) # 4
Everything normal here.
The division operator the floor division operator and the modulus operator all do their normal job.

Question#3

What is the expected output of the following code?
x = [0, 1, 2]
x.insert(0, 1)
del x[1]
print(sum(x))

A. 3
B. 2
C. 4
D. 5

Explanation:
Topics: insert() del sum() list
Try it yourself:
x = [0, 1, 2]
x.insert(0, 1)
print(x) # [1, 0, 1, 2]
del x[1]
print(x) # [1, 1, 2]
print(sum(x)) # 4
insert() inserts an item at a given position.
The first argument is the index of the element before which to insert.
insert(0, 1) inserts 1 before index 0 (at the front of the list).
The del keyword deletes the given object.
In this case x[1]
The sum() function adds the items of a list (or a different iterable) and returns the sum.

Question#4

What is the expected output of the following code?
num = 1
def func():
num = num + 3
print(num)
func()
print(num)

A. 4 1
B. 4 4
C. The code is erroneous.
D. 1 4
E. 1 1

Explanation:
Topics: def shadowing
Try it yourself:
num = 1
def func():
# num = num + 3 # UnboundLocalError: ...
print(num)
func()
print(num)
print('----------')
num2 = 1
def func2():
x = num2 + 3
print(x) # 4
func2()
print('----------')
num3 = 1
def func3():
num3 = 3 # Shadows num3 from outer scope
print(num3) # 3
func3()
A variable name shadows into a function.
You can use it in an expression like in func2()
or you can assign a new value to it like in func3()
BUT you can not do both at the same time like in func()
There is going to be the new variable num
and you can not use it in an expression before its first assignment.

Question#5

The value thirty point eleven times ten raised to the power of nine should be written as:

A. 30.11E9
B. 30E11.9
C. 30.11E9.0
D. 30.11*10^9

Explanation:
Topic: scientific notation
Try it yourself:
print(30.11E9) # 30110000000.0
# print(30E11.9) # SyntaxError: invalid syntax
# print(30.11E9.0) # SyntaxError: invalid syntax
# print(30.11*10^9) # TypeError: unsupported operand ...
print(30.11 * 10 ** 9) # 30110000000.0
You could replace the E by * 10 **

Exam Code: PCEP-30-02         Q & A: 417 Q&As         Updated:  Jul 15,2025

 

 Full PCEP-30-02 Exam Dumps Here