A dual-switch lighting system in a smart home uses an XOR (Exclusive OR) logic gate to determine whether a hallway light is illuminated. The two switches, A A\,A and BBB, provide binary inputs to the gate, and the output Q Q\,Q controls the light.
Complete the truth table for this XOR logic gate by identifying the correct values for XXX, YYY, and ZZZ.
| Switch AAA | Switch BBB | Light Output QQQ |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | XXX |
| 1 | 0 | YYY |
| 1 | 1 | ZZZ |
30 exam-style questions on AQA GCSE Computer Science Boolean logic. Each one has a worked solution and a mark scheme showing where the marks go.