Bird
0
0

Which logical operator in Python returns True only if both conditions are true?

easy📝 Conceptual Q11 of 15
Python - Operators and Expression Evaluation
Which logical operator in Python returns True only if both conditions are true?
Aor
Bxor
Cnot
Dand
Step-by-Step Solution
Solution:
  1. Step 1: Understand the meaning of logical operators

    The and operator returns True only if both conditions are true.
  2. Step 2: Compare with other operators

    or returns True if any condition is true, not reverses a condition, and xor is not a Python keyword.
  3. Final Answer:

    and -> Option D
  4. Quick Check:

    Both true conditions = and [OK]
Quick Trick: Use 'and' when all conditions must be true [OK]
Common Mistakes:
MISTAKES
  • Confusing 'and' with 'or'
  • Thinking 'not' combines conditions
  • Using 'xor' which is not a Python keyword

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Python Quizzes