Questions: XOR and XNOR Gates

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

Two 4-bit binary numbers, 1010 and 1011, are compared bit-by-bit using XOR gates. What is the 4-bit XOR output?

A1111 — XOR outputs 1 for every bit in the first number
B0001 — only the least significant bits differ
C0000 — the two numbers are equal
D1010 — XOR passes the first number through unchanged
Question 2 Multiple Choice

In a half-adder computing 1 + 1, the XOR gate produces the sum bit. What is that sum bit, and why is XOR the correct gate rather than OR?

ASum = 1, because OR(1,1) = 1 and addition gives a nonzero result
BSum = 0, because binary addition of 1 + 1 = 10₂ (zero with carry 1), and XOR(1,1) = 0
CSum = 2, because 1 + 1 = 2 in decimal
DSum = 1, because both inputs are 1 and the output should reflect that
Question 3 True / False

XOR and OR produce the same output for nearly every possible combination of two binary inputs.

TTrue
FFalse
Question 4 True / False

XOR-ing any value with itself always produces 0, regardless of what that value is.

TTrue
FFalse
Question 5 Short Answer

Explain why XOR is the correct gate for the sum bit of a half-adder, connecting this to what XOR fundamentally computes.

Think about your answer, then reveal below.