Choose the correct logic circuit for the given truth table having inputs A and B .
| Inputs | Output | |
|---|---|---|
| A | B | Y |
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
(see the figure above)

- (1)
see figure inputs A (upper) and B (lower) go into a gate with a curved back, a pointed front and no circle. A branch from A's wire rises, runs along the top to the right through a small triangle-with-circle symbol, then steps down into the upper input of a second gate (flat back, curved front, no circle). The first gate's output goes straight right into the lower input of the second gate; its output is 'Y'.
- (2)
see figure inputs A and B go into a gate with a curved back, a pointed front and no circle. A short vertical line rises from A's wire and stops (not joined to anything). The first gate's output goes straight right into the lower input of the second gate (flat back, curved front, no circle); a short separate line comes down to the second gate's upper input from above and stops; its output is 'Y'.
- (3)
see figure inputs A and B go into a gate with a curved back, a pointed front and no circle. A branch from A's wire rises, runs along the top to the right and steps down into the upper input of a second gate (flat back, curved front, no circle). The first gate's output goes right through a small triangle-with-circle symbol into the lower input of the second gate; its output is 'Y'.
- (4)
see figure inputs A and B go into a gate with a curved back, a pointed front and no circle (A into its upper input only). The first gate's output goes straight right into the upper input of a second gate (flat back, curved front, no circle). A branch from B's wire drops down, runs right along the bottom and goes up a little into the lower input of the second gate; its output is 'Y'.
Show answer
Option (2) is correct.
Key from source paper