Logic circuits
When is the output of a two-input XOR (exclusive OR) gate 1?
- AWhen both inputs are 1
- BWhen the two inputs are different
- CWhen both inputs are 0
Show answer and explanation
Answer: B. When the two inputs are different
XOR outputs 1 when its two inputs differ (0 and 1, or 1 and 0) and 0 when they are the same. It is used in the half adder, which computes the sum without the carry in binary addition.