Question 1 Report
A burglar alarm system has four inputs:
The alarm sounds (Z = 1) when the alarm is armed AND (a window or door sensor is triggered) AND the override switch is NOT active.
(a) Write the Boolean expression for Z.
[2]
(b) Complete the truth table for the case where A = 1 and O = 0, showing all combinations of W and D.
| W | D | A | O | W OR D | NOT O | Z |
|---|---|---|---|---|---|---|
| 0 | 0 | 1 | 0 | |||
| 0 | 1 | 1 | 0 | |||
| 1 | 0 | 1 | 0 | |||
| 1 | 1 | 1 | 0 |
[4]
(c) State the output Z when W=1, D=0, A=1, O=1. Explain your answer in the context of the alarm system.
[2]
(d) Draw a logic circuit using AND, OR and NOT gates that implements the Boolean expression from part (a).
[3]
(e) The homeowner wants to add a panic button (P) that always sounds the alarm when pressed, regardless of other inputs. Write the modified Boolean expression.
[2]
(a) Write the Boolean expression for Z. [2]
The alarm sounds when all three conditions are met simultaneously: the alarm is armed (A), a sensor is triggered (W or D), and the override is not active (NOT O). The expression is:
Z = A AND (W OR D) AND (NOT O) [1 for AND with sensor OR, 1 for NOT O]
(b) Complete the truth table for A = 1, O = 0. [4]
With A = 1 and O = 0, NOT O = 1. The output depends entirely on whether any sensor fires:
| W | D | A | O | W OR D | NOT O | Z |
|---|---|---|---|---|---|---|
| 0 | 0 | 1 | 0 | 0 | 1 | 0 |
| 0 | 1 | 1 | 0 | 1 | 1 | 1 |
| 1 | 0 | 1 | 0 | 1 | 1 | 1 |
| 1 | 1 | 1 | 0 | 1 | 1 | 1 |
When no sensor is triggered (row 1), W OR D = 0, so Z = 1 AND 0 AND 1 = 0 (alarm stays silent). In all other rows at least one sensor is active, so Z = 1 (alarm sounds). [1 per row]
(c) State the output Z when W=1, D=0, A=1, O=1. [2]
Z = 1 AND (1 OR 0) AND (NOT 1) = 1 AND 1 AND 0 = 0. [1]
In context: the window sensor has been triggered and the alarm is armed, but the override switch is active. The override disables the alarm, so it does not sound even though a breach has been detected. [1]
(d) Draw the logic circuit. [3]
The circuit requires three gates connected as follows:
(e) Write the modified Boolean expression with a panic button P. [2]
The panic button must always sound the alarm regardless of other inputs. This is achieved by ORing P with the original expression:
Z = (A AND (W OR D) AND (NOT O)) OR P
When P = 1, the OR guarantees Z = 1 no matter what the other inputs are. When P = 0, the expression reverts to the original behaviour. [1 for OR with P, 1 for preserving original expression]
Everything you need to excel in your exams