IAE Academy

GATE 2018 CS Q.4: solution and answer

GATE 2018 · CSQ.4 · 1 mark · MCQ

Let and denote the Exclusive OR and Exclusive NOR operations, respectively. Which one of the following is NOT CORRECT?

  1. (A)

  2. (B)

  3. (C)

  4. (D)

See the question in the paper

Answer and solution

ANSWER

Option (D) is NOT correct: its left side equals and its right side equals .

Official answer: DSource: Official answer key, GATE 2018 CS (IIT Guwahati)

  1. By definition, , so (A) is true.

  2. Complementing one input of an XOR complements the output, so . (B) is true.

  3. Complementing both inputs of an XOR changes nothing, because the two complements cancel: . (C) is true.

  4. (D), left side: , so .

  5. (D), right side: , so .

  6. The left side is and the right side is . They are never equal, so (D) is the statement that is NOT correct.

KEY IDEA

and . XNOR is the complement of XOR. Complementing one XOR input complements the output, and complementing both leaves it unchanged.

WATCH OUT FOR

Treating as 1, or forgetting that XNOR with 0 complements the other input. Both slips make the two sides of (D) look equal.

From the GATE 2018 CS paper. Every question of this paper · Download the full paper · All 37 Boolean logic questions, with notes

More Boolean logic questions