PCEP-30-02 Online Practice Questions

Home / Python Institute / PCEP-30-02

Latest PCEP-30-02 Exam Practice Questions

The practice questions for PCEP-30-02 exam was last updated on 2025-06-03 .

Viewing page 1 out of 29 pages.

Viewing questions 1 out of 147 questions.

Question#1

What is the output of the following snippet?



A . two
B . one
C . (‘one’, ‘two’, ‘three’)
D . three

A. A

Question#2

Which of the following lines properly starts a function using two parameters, both with zeroed default values?

A. def fun(a=0, b=0):
B. def fun(a=b=0):
C. fun fun(a=0, b):
D. fun fun(a, b=0):

Question#3

What is true about exceptions in Python? (Choose two.)

A. Not more than one except branch can be executed inside one try-except block.
B. According to Python terminology, exceptions are raised.
C. According to Python terminology, exceptions are thrown.
D. Python’s philosophy encourages developers to make all possible efforts to protect the program from the occurrence of an exception.

Question#4

What is the expected output of the following code?



A . 4
B . The code is erroneous.
C . 2
D . 16

A. D

Question#5

How did Python, the programming language, get its name?

A. Guido van Roddum named it to honor Python of Catana, a dramatic poet of the time of Alexander the Grerat B . Guido van Roddum named it to honor Monty Python's Flying Circus, a BBC comedy series popular in the 1970s C . Guido van Roddum named it after the Pythonidae - a family of large, nonvenomous snakes

Exam Code: PCEP-30-02Q & A: 417 Q&AsUpdated:  2025-06-03

 Get All PCEP-30-02 Q&As