Question: If A = 0 and B = 1, what is the output of the XOR gate?
Options:
Correct Answer: 1
Solution:
The XOR gate outputs 1 when the inputs are different. Since A is 0 and B is 1, the output is 1.