Question 1An alarm sounds if it is armed A and either door D or window W is open (TRUE means open). Construct its Boolean expression, describe a gate circuit with named intermediate wires, and give the truth table in input order000 through111. Then implement the same function using two-input NAND gates only; show the intermediate expressions rather than merely naming NAND.6 indicative marks
An alarm sounds if it is armed A and either door D or window W is open (TRUE means open). Construct its Boolean expression, describe a gate circuit with named intermediate wires, and give the truth table in input order000 through111. Then implement the same function using two-input NAND gates only; show the intermediate expressions rather than merely naming NAND.
Show indicative guidance
Worked guidance
- Let X=D OR W and Y=A AND X. A two-input OR feeding a two-input AND is the direct circuit. The table rows(ADW:Y) are000:0,001:0,010:0,011:0,100:0,101:1,110:1,111:1.
- N1=NAND(D,D)=NOT D; N2=NAND(W,W)=NOT W; N3=NAND(N1,N2)=D OR W by De Morgan. N4=NAND(A,N3)=NOT Y; Y=NAND(N4,N4). This uses five two-input NAND gates and agrees on all eight rows.
- Opening a sensor without arming must not sound the alarm. A OR(D AND W) fails, for example atA=0,D=1,W=1, so the parentheses and translated circuit are substantive.
Self-marking points
View marking points
- Expression is A AND(D OR W).
- OR combines D,W; AND combines its output with A.
- For A=0 all four outputs are0.
- For A=1 outputs for DW=00,01,10,11 are0,1,1,1.
- NAND(D,D) and NAND(W,W) form NOT D, NOT W; NAND of these forms D OR W.
- NAND that OR result with A then NAND the result with itself to obtain the required positive output.
Examiner tip
Indicative distinct points, not an official Cambridge mark allocation. State bounds, assumptions and intermediate states; practical teacher review remains required.