PCEP Practice Question: Data Types, Variables, Basic I/O and Operators
Which two of the following expressions return the value 5? (Choose two.)
⚠ Common exam trap
Python Institute often tests the difference between / (float division) and // (integer floor division), trapping candidates who assume / returns an integer when the division is exact.
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
✓
10 // 2
(10 // 2) uses floor division, which divides 10 by 2 and returns the integer quotient 5. This is correct because floor division in Python discards any fractional remainder, yielding an exact integer result.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
10 % 5
Why it's wrong here
Modulo yields 0
- ✓
10 // 2
Why this is correct
Floor division yields 5
- ✗
10 ** 0
Why it's wrong here
Any number to the power 0 yields 1
- ✗
10 / 2
Why it's wrong here
Returns 5.0 (float), not integer 5
- ✓
5 * 1
Why this is correct
Multiplication yields 5
Go deeper
Related to this question
About these practice questions
One of 498 original PCEP practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.