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; .
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 .
[!ANSWER]
| A | B | |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
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.