logo

Question detail

Which Boolean expression is true when exactly one of A and B is true?

Try the question, check the answer, then read the explanation to understand the curriculum point.

At a glance

MCQ

Type

practice

Style

Topic

Abstraction and automation

Exam-style question

Try this first

Which Boolean expression is true when exactly one of A and B is true?.

  1. A.A AND B
  2. B.A OR B
  3. C.(A OR B) AND NOT (A AND B)
  4. D.NOT A AND NOT B

Model answer

What a good answer should say

  • (A OR B) AND NOT (A AND B)

Explanation

Why this works

A OR B requires at least one input to be true. NOT (A AND B) prevents both inputs from being true, leaving exactly one true input.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions

No questions are published for this page yet.