PCEP Computer Programming and Python Fundamentals Practice Question
A developer is reviewing Python's built-in numeric types while preparing a data-processing script. Which TWO statements about Python's numeric types are accurate? (Choose two.)
⚠ Common exam trap
The trap here is assuming that all numeric types behave like fixed-width integers from other languages, which leads to wrongly accepting claims about float exactness or integer overflow.
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
✓
The int type can represent arbitrarily large whole numbers, limited only by available memory.
Python's int objects use arbitrary precision, allowing whole numbers far larger than fixed-width machine integers, and bool is a subclass of int whose instances act as one and zero in arithmetic. Together these two facts describe genuine features of the numeric type hierarchy. The other statements mischaracterize floats as exact, deny arithmetic support for complex numbers, and confuse true division with floor division.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
The int type can represent arbitrarily large whole numbers, limited only by available memory.
Why this is correct
Python integers are arbitrary-precision objects, so values grow beyond the fixed widths found in many other languages. Computing large powers such as 2 ** 200 produces an exact integer rather than an overflow. This behavior makes int suitable for exact arithmetic in scripts that process large counts or identifiers, and it is a defining characteristic of the type.
- ✗
The float type stores values with exact decimal precision for all real numbers.
Why it's wrong here
Floats use binary floating-point representation, which cannot represent every decimal fraction exactly. Values such as zero point one become repeating binary fractions that are rounded to the nearest storable value. This is why expressions like 0.1 + 0.2 do not equal 0.3 exactly. For exact decimal behavior, the decimal module is used instead, so this statement is inaccurate.
- ✓
The bool type is a subclass of int, so True and False behave as 1 and 0 in arithmetic.
Why this is correct
In Python, bool is implemented as a subclass of int, and its two instances correspond to the values one and zero. Expressions like True + True evaluate to two, and sum of a list of booleans counts the true entries. This relationship is intentional and documented, making the statement accurate for the language's built-in numeric hierarchy.
- ✗
The complex type cannot be used with the addition operator.
Why it's wrong here
Complex numbers support the standard arithmetic operators, including addition, subtraction, multiplication, and division. Adding two complex values combines their real and imaginary parts independently. Python also provides the abs function to obtain a complex magnitude. This statement contradicts documented behavior, so it cannot be selected as an accurate description of the complex type.
- ✗
Dividing two integers with the single slash operator always produces an integer result.
Why it's wrong here
The single slash performs true division and always returns a float, even when both operands are integers and the quotient is whole. For example, 6 / 3 yields 2.0 rather than 2. Integer results come from the double slash floor division operator. This statement describes the behavior of floor division, not true division, so it is incorrect.
Go deeper
Related to this question
About these practice questions
Courseiva writes every PCEP question from scratch — 482 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official Python Institute exam blueprint
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.