Python Institute PCEP – Certified Entry-Level Python Programmer (PCEP-30-02) - Python

Exam Questions

94%

Students found the real exam almost the same

1,057

Students passed this exam after ExamsQA Prep

95.1%

Average score during Real Exams at the Testing Centre

💡

Browse at least 50% questions to maximize your chances of passing

Free Preview Questions

Sample PCEP-30-02 Exam Questions & Explanations

Practice with real question formats, multiple choice options, and detailed answer explanations for Python PCEP-30-02.

Question #1 Verified Q&A
DRAG DROP<br />
Insert the code boxes in the correct positions in order to build a line of code which asks the user for<br />
an integer value and assigns it to the depth variable. (Note: some code boxes will not be used.)<br />
<br />
<img src="https://examsqa.com/storage/question-images/python-institute-pcep-certified-entry-level-python-programmer-pcep-30-02_page_1_Im2.jpg" alt="Exhibit" style="max-width: 100%; height: auto;" />
Explanation:
<img src="https://examsqa.com/storage/question-images/python-institute-pcep-certified-entry-level-python-programmer-pcep-30-02_page_2_Im3.jpg" alt="Exhibit" style="max-width: 100%; height: auto;" /><br />
<br />
One possible way to insert the code boxes in the correct positions in order to build a line of code which asks the user for an integer value and assigns it to the depth variable is:<br />
depth = int(input("Enter the immersion depth: "))<br />
This line of code uses the input function to prompt the user for a string value, and then uses the int function to convert that string value into an integer number. The result is then assigned to the variable depth. You can find more information about the input and int functions in Python in the following [Python input() Function]<br />
<br />
references: [Python int() Function]
Question #2 Verified Q&A
A set of rules which defines the ways in which words can be coupled in sentences is called:
A dictionary
B lexis
C semantics
D syntax
Correct Answer: syntax
Explanation:
Syntax is the branch of linguistics that studies the structure and rules of sentences in natural languages. Lexis is the vocabulary of a language. Semantics is the study of meaning in language. A dictionary is a collection of words and their definitions, synonyms, pronunciations, etc.<br />
<br />
Reference: [Python Institute - Entry-Level Python Programmer Certification]
Question #3 Verified Q&A
DRAG DROP Arrange the binary numeric operators in the order which reflects their priorities, where the top-most position has the highest priority and the bottom-most position has the lowest priority.<br />
<br />
<img src="https://examsqa.com/storage/question-images/python-institute-pcep-certified-entry-level-python-programmer-pcep-30-02_page_3_Im4.jpg" alt="Exhibit" style="max-width: 100%; height: auto;" /><br />
<br />
<img src="https://examsqa.com/storage/question-images/python-institute-pcep-certified-entry-level-python-programmer-pcep-30-02_page_3_Im5.jpg" alt="Exhibit" style="max-width: 100%; height: auto;" />
Explanation:
The correct order of the binary numeric operators in Python according to their priorities is: Exponentiation (**) Multiplication (*) and Division (/, //, %) Addition (+) and Subtraction (-) This order follows the standard mathematical convention of operator precedence, which can be remembered by the acronym PEMDAS (Parentheses, Exponents, Multiplication/Division, Addition/Subtraction). Operators with higher precedence are evaluated before those with lower precedence, but operators with the same precedence are evaluated from left to right. Parentheses can be used to change the order of evaluation by grouping expressions.<br />
For example, in the expression 2 + 3 * 4 ** 2, the exponentiation operator (**) has the highest<br />
priority, so it is evaluated first, resulting in 2 + 3 * 16. Then, the multiplication operator (*) has the next highest priority, so it is evaluated next, resulting in 2 + 48. Finally, the addition operator (+) has the lowest priority, so it is evaluated last, resulting in 50.<br />
<br />
You can find more information about the operator precedence in Python in the following references:<br />
<br />
6. Expressions — Python 3.11.5 documentation<br />
Precedence and Associativity of Operators in Python - Programiz<br />
Python Operator Priority or Precedence Examples Tutorial
Question #4 Verified Q&A
Which of the following expressions evaluate to a non-zero result? (Select two answers.)
A 1 * 4 // 2 ** 3
B 2 ** 3 / A - 2
C 1 * * 3 / 4 - 1
D 4 / 2 * * 3 - 2
Explanation:
In Python, the ** operator is used for exponentiation, the / operator is used for floating-point division, and the // operator is used for integer division. The order of operations is parentheses, exponentiation, multiplication/division, and addition/subtraction. Therefore, the expressions can be evaluated as follows:<br />
<br />
A) 2 ** 3 / A - 2 = 8 / A - 2 (assuming A is a variable that is not zero or undefined) B. 4 / 2 * * 3 - 2 = 4<br />
/ 8 - 2 = 0.5 - 2 = -1.5 C. 1 * * 3 / 4 - 1 = 1 / 4 - 1 = 0.25 - 1 = -0.75 D. 1 * 4 // 2 ** 3 = 4 // 8 = 0 Only expressions A and B evaluate to non-zero results.<br />
<br />
Reference: [Python Institute - Entry-Level Python Programmer Certification]
Question #5 Verified Q&A
DRAG DROP<br />
Insert the code boxes in the correct positions in order to build a line of code which asks the user for a<br />
float value and assigns it to the mass variable. (Note: some code boxes will not be used.)<br />
<br />
<img src="https://examsqa.com/storage/question-images/python-institute-pcep-certified-entry-level-python-programmer-pcep-30-02_page_5_Im6.jpg" alt="Exhibit" style="max-width: 100%; height: auto;" />
Explanation:
<img src="https://examsqa.com/storage/question-images/python-institute-pcep-certified-entry-level-python-programmer-pcep-30-02_page_6_Im7.jpg" alt="Exhibit" style="max-width: 100%; height: auto;" /><br />
<br />
One possible way to insert the code boxes in the correct positions in order to build a line of code that asks the user for a float value and assigns it to the mass variable is:<br />
mass = float(input("Enter the mass: "))<br />
This line of code uses the input function to prompt the user for a string value, and then uses the float function to convert that string value into a floating-point number. The result is then assigned to the variable mass. You can find more information about the input and float functions in Python in the following<br />
<br />
references: [Python input() Function] [Python float() Function]

Want to practice all 30 questions?

Practice under real exam conditions with instant grading, timed simulations, and community insights.

Start Full PCEP-30-02 Practice Test

Frequently Asked Questions

Common questions about the Python PCEP-30-02 certification practice test

How many questions are in the Python PCEP-30-02 practice exam on ExamsQA?
Our PCEP-30-02 (Python Institute PCEP – Certified Entry-Level Python Programmer) practice question bank currently includes 30 verified questions with comprehensive explanations.
Are the PCEP-30-02 exam practice questions up to date for 2026?
Yes, all Python PCEP-30-02 practice questions are regularly updated and verified against current exam objectives.
Will the PCEP-30-02 practice questions help me pass on my first attempt?
The PCEP-30-02 (Python Institute PCEP – Certified Entry-Level Python Programmer) question bank is built to mirror the real exam's format and topics, with detailed explanations for every answer so you understand the reasoning — not just memorize responses.
Is there a free demo available for PCEP-30-02 Python Institute PCEP – Certified Entry-Level Python Programmer?
Yes, ExamsQA offers free demo questions for the PCEP-30-02 exam so you can test the interface and question quality before purchasing full access.