Question 17 of 498
PCEP Practice Question: Data Types, Variables, Basic I/O and Operators
Which THREE of the following statements about Python operators are true?
⚠ Common exam trap
Python Institute often tests the Python 3-specific change that the `/` operator always returns a float, trapping candidates who remember the Python 2 behavior where `/` performed integer division on integers.
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 not operator is a logical operator that negates a condition.
The `not` operator is a logical operator in Python that returns the Boolean negation of its operand: if the operand is `True`, `not` returns `False`, and vice versa. This is fundamental to Boolean logic and conditional expressions in Python.
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 not operator is a logical operator that negates a condition.
Why this is correct
Correct.
- ✓
The // operator performs floor division.
Why this is correct
Correct.
- ✗
The ** operator is the bitwise XOR operator.
Why it's wrong here
** is exponentiation; XOR is ^.
- ✗
The / operator always returns an integer if both operands are integers.
Why it's wrong here
/ always returns a float.
- ✓
The % operator returns the remainder of division.
Why this is correct
Correct.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Same concept, more angles
1 more way this is tested on PCEP
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. Which THREE of the following are Python built-in data types?
medium- A.array
- ✓ B.bool
- C.char
- ✓ D.float
- ✓ E.int
Why B: `bool` is a built-in data type in Python, used to represent Boolean values `True` and `False`. It is a subclass of `int` and is fundamental for logical operations and conditional expressions.
Last reviewed: Jun 30, 2026
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.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.