Which logic gate outputs a binary 1 if and only if its two binary inputs are unequal (one is 1 and the other is 0)?

Answer and explanation

Correct answer: B. XOR gate

  1. Step 1: The Exclusive OR (XOR) gate performs modulo-2 addition: 0 XOR 1 = 1, 1 XOR 0 = 1, while 0 XOR 0 = 0 and 1 XOR 1 = 0. Step 2. It produces true (1) exclusively when the inputs differ. Answer: XOR gate. Why not the others: AND outputs 1 only when both are 1; XNOR outputs 1 when inputs are identical; NOR outputs 1 only when both are 0.

Practise more Computer Systems, Networking and ICT.

Free questions with an explanation for every one, and full timed Bangladesh Civil Service Preliminary Examination mock tests.