logo

Question detail

Which statement correctly describes XOR?

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

At a glance

MCQ

Type

practice

Style

Topic

Programming

Exam-style question

Try this first

Which statement correctly describes XOR?.

  1. A.It produces True only when both inputs are True
  2. B.It produces True when at least one input is True
  3. C.It produces True when exactly one input is True
  4. D.It always produces the opposite of the first input

Model answer

What a good answer should say

  • It produces True when exactly one input is True

Explanation

Why this works

Exclusive OR, or XOR, is True when the two input values are different: one is True and the other is False.

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.