If A = 0 and B = 1, what is the output of the XOR gate?

Practice Questions

Q1
If A = 0 and B = 1, what is the output of the XOR gate?
  1. 0
  2. 1
  3. 2
  4. Undefined

Questions & Step-by-Step Solutions

If A = 0 and B = 1, what is the output of the XOR gate?
Correct Answer: 1
  • Step 1: Identify the inputs for the XOR gate. Here, A = 0 and B = 1.
  • Step 2: Understand how the XOR gate works. It outputs 1 when the inputs are different (one is 0 and the other is 1).
  • Step 3: Compare the inputs A and B. Since A (0) is different from B (1), they are different.
  • Step 4: Since the inputs are different, the output of the XOR gate is 1.
  • XOR Gate Functionality – The XOR (exclusive OR) gate outputs true (1) if the inputs are different and false (0) if they are the same.
Soulshift Feedback ×

On a scale of 0–10, how likely are you to recommend The Soulshift Academy?

Not likely Very likely