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 |
Practise AQA GCSE Computer Science Boolean logic with exam-style questions for GCSE Computer Science. 83 questions, matched to the AQA GCSE Computer Science (8525) specification and written in Paper 1 and Paper 2 style. Every question includes a full worked solution and mark scheme, so you can see where marks are awarded rather than just whether you got the answer right.