Skip to content
Question Bank (2 marks) · Q1

Q.What is an XOR gate? Write its truth table.

Karnataka PUCTextbookShort· 2mImportance★★★★★est
2% · 3/160 Questions
✓ Free question

[!TLDR]

An XOR gate gives output 1 only when its two inputs differ; Y=A⊕B=A‾B+AB‾Y = A \oplus B = \overline{A}B + A\overline{B}.

The exclusive-OR gate is a two-input gate that detects inequality between its inputs. Unlike the ordinary OR gate, it excludes the case where both inputs are 1: the output is HIGH only when an odd number of inputs (here, exactly one) is HIGH. This "difference detector" behaviour makes it a key building block in adders, parity generators and comparators.

Its logic symbol is the OR-gate shape with an extra curved line across the inputs, and its Boolean equation is Y=A⊕B=A‾B+AB‾Y = A \oplus B = \overline{A}B + A\overline{B}.

[!ANSWER]

ABY=A⊕BY = A \oplus B
000
011
101
110

The output is 1 for the two rows where the inputs differ (01 and 10) and 0 where they are the same.

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.