PCEP Logical operators Practice Question
Which logical expression evaluates to True given that a = 5 and b = 10?
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
✓
not (a > b)
Only option C evaluates to True. Option C: not (5 > 10) = not False = True. Option D: a == b or False = 5 == 10 or False = False or False = False. Options A and B are also False.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
a > b and b < 0
Why it's wrong here
a > b is False and b < 0 is False, so False and False = False.
- ✗
not (a < b)
Why it's wrong here
a < b is True, so not True = False.
- ✓
not (a > b)
Why this is correct
not (a > b) = not (5 > 10) = not False = True
- ✗
a == b or False
Why it's wrong here
a == b or False = False or False = False
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.