PCEP Practice Question: Data Types, Variables, Basic I/O and Operators
Exhibit
>>> x = 10 >>> y = 20 >>> z = x * y + 5 >>> print(z) 205
Given x = 100 and y = 105, what is the value of z if z = x + y?
⚠ Common exam trap
Python Institute often tests whether candidates correctly perform simple arithmetic with given integer values, trapping those who misread the numbers or confuse addition with other operations like multiplication or subtraction.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
205
The values of x and y are 100 and 105 respectively. The expression z = x + y calculates their sum: 100 + 105 = 205. Therefore, print(z) outputs 205.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
200
Why it's wrong here
Missing the +5.
- ✓
205
Why this is correct
10 * 20 = 200, plus 5 = 205.
- ✗
25
Why it's wrong here
That would be 20 + 5.
- ✗
250
Why it's wrong here
That would be 10 * 25.
Go deeper
Related to this question
About these practice questions
This PCEP question is part of Courseiva's 498-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This PCEP practice question is part of Courseiva's free Python Institute certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PCEP exam.