Logic Gate
Logic Gate
4 (a) An alarm system (X) is enabled and disabled using either a switch (A) or a remote control (B).
There are two infra-red sensors (C, D) and one door pressure sensor (E).
Description of
Parameter Binary value Condition
parameter
1 Switch enabled
A Switch
0 Switch disabled
1 Remote enabled
B Remote control
0 Remote disabled
1 Activated
C Infra-red sensor
0 Not activated
1 Activated
D Infra-red sensor
0 Not activated
The alarm sounds (X = 1) if the alarm is enabled and any one or more of the sensors is
activated.
C
X
[3]
(b) Complete the truth table for the logic expression: X = A OR (B XOR C)
Working space
A B C X
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
[4]
2 (a) A greenhouse control system has four input parameters (H, D, T, W) and two outputs (X, Y).
Description of
Parameter Binary value Condition
parameter
0 Too low
H Humidity
1 Acceptable
0 Night
D Day
1 Day
0 Too high
T Temperature
1 Acceptable
0 Closed
W Windows
1 Open
The fan turns on (Y = 1) if the temperature is too high and the windows are closed.
T
Y
[6]
(b) Complete the truth table for the logic expression: X = NOT A AND (B NAND C)
Working space
A B C X
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
[4]
5 (a) A student needs to design a logic circuit to model the requirements for membership of a
snooker club. Membership (X) depends on four criteria, as shown in the table:
Description of Binary
Parameter Condition
parameter value
1 True
A Over 18
0 False
1 True
B Recommended
0 False
1 True
C Full-time
0 False
1 True
D Retired
0 False
• is over the age of 18 and has been recommended by a pre-existing member and
• either is working full-time or is retired, but not both.
[3]
(b) Complete the truth table for the logic expression: X = (A XOR B) AND NOT C
A B C Working space X
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
[4]
B X
[5]
(b) Complete the truth table for the logic expression in part (a).
Working space
A B C X
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
[4]
X
B
Working space
A B C X
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
[4]
(b) Identify one logic gate not used in the logic circuit in part (a).
Draw the symbol for this logic gate and complete its truth table.
Symbol:
0 0
0 1
1 0
1 1
[3]
Draw the logic circuit for the given expression using a maximum of four gates.
B X
[4]
Draw the logic circuit for the given expression, using a maximum of four logic gates.
B
X
[4]
Working space
A B C X
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
[4]
Identify one logic gate that would not be used in the logic circuit for this expression.
Draw the symbol for the logic gate.
[2]
5 A motor is controlled by a logic circuit. The circuit has inputs (0 or 1) from three sensors
R, T and W. The motor is switched off when the output from the logic circuit is 1.
The following table shows the three sensors and the conditions being monitored.
0 temperature >= 90 °C
T temperature
1 temperature < 90 °C
or
T X
[5]
(ii) Give a logic statement corresponding to the logic circuit in part (i).
...........................................................................................................................................
.......................................................................................................................................[2]
R T W X
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
[4]
6 A user watches a video available on a website. The website uses on-demand bit streaming.
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
......................................................................................................................................................[4]
S X
[6]
(b) Complete the truth table for the logic expression given in part (a).
B S P Working space X
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
[4]
5 A motor is controlled by a logic circuit. The circuit has inputs (0 or 1) from three sensors
R, T and W. The motor is switched off when the output from the logic circuit is 1.
The following table shows the three sensors and the conditions being monitored.
0 temperature >= 90 °C
T temperature
1 temperature < 90 °C
or
T X
[5]
(ii) Give a logic statement corresponding to the logic circuit in part (i).
...........................................................................................................................................
.......................................................................................................................................[2]
R T W X
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
[4]
6 A user watches a video available on a website. The website uses on-demand bit streaming.
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
......................................................................................................................................................[4]
B X
[4]
(b) Complete the truth table for the logic expression in part (a).
Working space
A B C X
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
[4]
3 (a) A bank approves a customer for an account based on the criteria in the following table.
1 True
A Employed
0 False
1 True
B Self-employed
0 False
1 True
C Over 21
0 False
1 True
D Earn more than 30 000
0 False
1 True
E Another account
0 False
C X
[5]
Working space
A B C X
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
[4]
B
X
[4]
Working space
A B C X
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
[4]
B X
[5]
Working space
A B C X
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
[4]
7 A system is monitored using sensors. The sensors output binary values corresponding to physical
conditions, as shown in the table:
Description of Binary
Parameter Description of condition
parameter value
1 pressure >= 3 bar
P oil pressure
0 pressure < 3 bar
1 temperature >= 200°C
T temperature
0 temperature < 200°C
1 rotation <= 1000 revs per minute (rpm)
R rotation
0 rotation > 1000 revs per minute (rpm)
The outputs of the sensors form the inputs to a logic circuit. The output from the circuit, X, is 1 if
any of the following three conditions occur:
T X
[5]
© UCLES 2015 9608/11/M/J/15
11
Workspace
P T R X
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
[4]
7 A system is monitored using sensors. The sensors output binary values corresponding to physical
conditions, as shown in the table:
Description of Binary
Parameter Description of condition
parameter value
1 pressure >= 3 bar
P oil pressure
0 pressure < 3 bar
1 temperature >= 200°C
T temperature
0 temperature < 200°C
1 rotation <= 1000 revs per minute (rpm)
R rotation
0 rotation > 1000 revs per minute (rpm)
The outputs of the sensors form the inputs to a logic circuit. The output from the circuit, X, is 1 if
any of the following three conditions occur:
T X
[5]
© UCLES 2015 9608/12/M/J/15
11
Workspace
P T R X
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
[4]
6 (a) Three digital sensors A, B and C are used to monitor a process. The outputs from the sensors
are used as the inputs to a logic circuit.
B X
[5]
(b) Complete the truth table for the logic circuit described in part (a).
Working Space
A B C X
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
[4]
(c) Write a logic statement that describes the following logic circuit.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
.............................................................................................................................................. [3]
© UCLES 2015 9608/13/M/J/15