Python Institute PCEP-30-02 Practice Exams
Last updated on Apr 13,2025- Exam Code: PCEP-30-02
- Exam Name: PCEP – Certified Entry-Level Python Programmer
- Certification Provider: Python Institute
- Latest update: Apr 13,2025
Which of the following enclose the input parameters or arguments of a function?
- A . Brackets
- B . Quotation marks
- C . Curly braces
- D . Parentheses
DRAG DROP
Arrange the binary numeric operators in the order which re fl ects their priorities, where the top-most position has the highest priority and the bottom-most position has the lowest priority.
What is the expected output of the following code?
- A . None
- B . 1
- C . 2
- D . The code is erroneous.
What is the expected output of the following code?
- A . 9
- B . The program will cause an error.
- C . True
- D . 27
- E . 3
What do you call a tool that lets you launch your code step-by-step and inspect it at each moment of execution?
- A . An editor
- B . A debugger
- C . A console
What is the expected output of the following code?
- A . 3
- B . 5
- C . The code is erroneous.
- D . 14
You have the following le.
You want the following output: The average score for Peter is 200.00.
Which command do you have to execute in the command line?
- A . python index.py Peter 100
- B . python index.py Peter 100 200 300
- C . The code is erroneous.
- D . python index.py Peter 100 200
How many stars will the following snippet print to the monitor?
- A . The snippet will enter an in fi nite loop.
- B . 2
- C . 0
- D . 1
Consider the following code.
Which of the following code snippets will expand the code, so that 100 will be printed to the monitor? (Choose two.)
A )
B )
C )
D )
- A . Option A
- B . Option B
- C . Option C
- D . Option D
What is the expected output of the following code?
x = 4.5
y = 2
print (x // y)
- A . 2.5
- B . 2
- C . 2.25
- D . 2.0