Python Institute PCEP-30-02 Practice Exams
Last updated on Mar 30,2025- Exam Code: PCEP-30-02
- Exam Name: PCEP – Certified Entry-Level Python Programmer
- Certification Provider: Python Institute
- Latest update: Mar 30,2025
Question #1
What is CPython?
- A . It’s a programming language that is a superset of the C language, designed to produce Python-like performance with code written in C.
- B . It’s a default, reference implementation of the Python language, written in C.
- C . It’s a programming language that is a superset of the Python, designed to produce C-like performance with code written in Python.
- D . It’s a default, reference implementation of the C language, written in Python.
Question #2
What is the expected output of the following code?
- A . [‘JA’, ‘ST’]
- B . [‘MA’, ‘JA’, ‘ST’]
- C . [‘MAR’, ‘JAN’, ‘STE’]
- D . [‘JAN’, ‘STE’]
Question #3
The None keyword designates:
- A . a None value
- B . a function which doesn’t return a value
- C . an empty instruction
Question #4
The digraph written as #! is used to:
- A . tell an MS Windows OS how to execute the contents of a Python le.
- B . tell a Unix or Unix-like OS how to execute the contents of a Python le.
- C . create a docstring.
- D . make a particular module entity a private one.
Question #5
What is the expected behavior of the following program?
- A . The program will cause a ValueError exception and output a default error message.
- B . The program will cause a SyntaxError exception.
- C . The program will cause a ZeroDivisionError exception and output a default error message.
- D . The program will cause a ValueError exception and output the following message: Too bad…
- E . The program will raise an exception handled by the fi rst except block.
Question #6
Question #7
A function parameter is a kind of variable accessible:
- A . only after the function de fi nition’s completion
- B . anywhere in the code
- C . only inside the function
Question #8
What is the expected output of the following code?
- A . None
- B . 2
- C . The code is erroneous.
- D . 4
Question #9
What is the expected output of the following code?
- A . 2
- B . None
- C . The code is erroneous.
- D . 4
Question #10
Assuming that the following assignment has been successfully executed:
the_list = [‘list’, False, 3e8]
Which of the following expressions evaluate to True? (Choose two.)
- A . int(the_list[2]) == len(the_list)
- B . the_list[1] in the list
- C . 300 in the_list and the_list[l]
- D . the_list.index(False) == 1