Bird
0
0

Which of the following expressions evaluates to False in Python?

easy📝 Conceptual Q1 of 15
Python - Data Types as Values
Which of the following expressions evaluates to False in Python?
A"True"
B1
C0
D42
Step-by-Step Solution
Solution:
  1. Step 1: Understand Boolean evaluation of integers

    In Python, 0 is considered False, while any non-zero integer is True.
  2. Step 2: Evaluate each option

    0 is 0 (False), B is 1 (True), C is a non-empty string (True), D is 42 (True).
  3. Final Answer:

    0 evaluates to False -> Option C
  4. Quick Check:

    Boolean evaluation of 0 = False [OK]
Quick Trick: Zero is always False, non-zero numbers are True [OK]
Common Mistakes:
MISTAKES
  • Thinking non-empty strings are False
  • Assuming 1 is False
  • Confusing string 'True' with Boolean True

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Python Quizzes