logo

AQA A-Level Computer Science practice

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

Try the question first, then check the answer and practise the same topic again.

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

Answer and explanation

Concise answer

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

Why this is correct

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.

Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions