Logic circuits

When is the output of a two-input XOR (exclusive OR) gate 1?

  1. AWhen both inputs are 1
  2. BWhen the two inputs are different
  3. 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.

Practice this topic Back to topic

More Logic circuits questions

  1. What is the binary number 1011 in decimal?
  2. Which correctly describes a sequential circuit?
  3. In a 1-bit half adder, which logic produces the sum (S) and carry (C)?
  4. What is the hexadecimal number FF in decimal?
  5. Which bit pattern represents −1 in 4-bit two's complement?