Skip to content

Course home

Boolean logic

Boolean logic

EasyMedium
123456789101112131415161718192021222324
Question 16

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 AAASwitch BBBLight Output QQQ
000
01XXX
10YYY
11ZZZ
[3]
Markscheme

Boolean logic Questions

  1. GCSE
  2. /Computer Science
  3. /Boolean logic

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.

Question bank