Professional Documents
Culture Documents
Logic Gate 1
Logic Gate 1
Logic Gate 1
38
C P Q R D P Q R
0 0 0 0 0 1
1 0 0 1 0 1
Which of the following logic gate is equivalent to the 0 1 0 0 1 0
circuit above? 1 1 0 1 1 1
A OR gate B AND gate C NOT gate D NAND gate
7 The diagram shows the combination of four logic gates.
3 The diagram shows the combination three logic gates.
C P Q R D X Y Q
0 0 0 0 0 1
0 1 0 0 1 0
If the input signals P and Q are respectively 1001 and 1 0 1 1 0 0
1100 what is the output signal at X? 1 1 0 1 1 0
A 0001 B 0010 C 1010 D 1110
9 The diagram shows a circuit containing three logic gates.
6 The diagram shows a combination of three logic gates.
Which truth table is correct for the combination of three Which of the following is the correct truth table for output
logic gates? R?
A P Q R B P Q R A P Q R B P Q R
0 0 1 0 0 0 0 0 0 0 0 1
1 0 1 1 0 0 0 1 1 0 1 0
0 1 1 0 1 1 1 0 1 1 0 1
1 1 1 1 1 0 1 1 1 1 1 1
39
C P Q R D X Y Q Which of the following is the output signal of the OR
0 0 1 0 0 1 gate?
0 1 0 0 1 0
1 0 1 1 0 0
1 1 0 1 1 1
11 The table shows a truth table for a combination of logic 14 The diagram shows a logic gate circuit with input signals,
gates. K and L.
P Q R
0 0 1
0 1 0
1 0 0
1 1 0
Which of the following is true to show a circuit according Which of the following output signals is produced by the
to the truth table above? logic gate circuit?
Fig. 5.1
40
The output of the temperature sensor is high (logic 1) when it detects …….………………………………………...…….[1 mark]
raised temperatures. The output of the light sensor is high (logic 1) (iii)Table 8.1 is a truth table for this security lamp system
when it detects raised light levels. The lamp is lit when the input to Jadual 8.1 ialah jadual kebenaran untuk sistem lampu
the relay is high (logic 1). keselamatan.
Input light sensor Temperature sensor Output X
(a) Name an electronic component that can be used as
0 0
(i) temperature sensor: …………………………………………..… 0 1
[1] 1 0
1 1
(ii) light sensor:…… ………………………………………………...[1] Table 8.1
Complete table 8.1 [2 m]
(b) Using the electrical components shown below, draw a circuit
diagram which produces the same output as logic gate B (iv)State the conditions under which the lamp is lit.
……………………………………………………[1 mark]
[2]
(c) State the conditions under which the lamp is lit.
Diagram 8.2 / Rajah 8.2
………………………...………………………………………………[1] The bar is lifted when the car stops at pad P and button Q
is pressed
(c) Suggest why B is connected to a relay, rather than directly to the Key / kekunci:
lamp. Input Logic Condition Output Logic Condition
0 car is not at Barrier 0 Not lifted
…………………………………………………..……………………[1]
pad
P
16(a)Diagram 8.1 shows a combination of logic gates to 1 car is at pad 1 Lifted
control a security lamp of 240 V. P
0 button is not
pressed
Q
1 button is
pressed
Diagram 8.3 shows the circuit which contains the logic gate
Diagram 8.1 / Rajah 8.1 circuit that is connected to the electric motor that controls
The temperature sensor gives logic 1 when it detects the barrier
raised temperatures. The light sensor gives logic 1 when
it detects raised in light levels. The lamp is lit when the
input to the relay is high (logic 1).
…………………………………………………….[1 mark]
Diagram 8.3 / Rajah 8.3
(ii)What is the function of logic gate A.
41
Some modifications need to be done on the barrier, the (c) Suggest why B is connected to a relay in order to light the
electric motor and type of logic gate used to enable the lamp.
automatic barrier system to function effectively. State the
suitable modification and give one reason for the ………………....................................................................[1]
modification.
(i) Mass of barrier. (d) Suggest a practical use for this circuit.
………………………………………………....…[1 mark]
Reason
…………………………………….……………..[1 mark]
Diagram 2.1
(iii)Type of logic gate W (a) Name the two types of logic gate used in the circuit above.
…................................................................................................[2]
………………………………………………....…[1 mark]
(b) State the conditions for the heater to be on.
Reason
………………..............................................................................[2]
…………………………………………..……..[1 mark]
(c) Why relay switch is required in the circuit?
16. Fig. 10.1 shows schematically a digital electronic circuit.
…………………………………………………………………………[1]
Fig. 10.1
(a) State the name of the logic gate
(i) at A:………………………………………………..................
(ii) at B.:..............................................................................[2]
(b) The light sensor has a “high” (logic 1) output in bright light (a) Name the logic gate M.
and a “low” (logic 0) output when it is dark. The heat sensor
has a “high” (logic 1) output when it is hot and a “low” (logic ………………………………………………………………………[1]
0) output when it is cold. State the outputs of A and B when
(i) it is bright and cold, (b) Using the electrical components in Diagram 3.2, draw a
circuit diagram that has the same output as M.
output of A = ....................................................................
output of B = ................................................................[2]
Diagram 3.2
(ii) it is dark and hot.
output of A = ...................................................................
output of B = ...............................................................[2]
42
(c) Table 3 is the truth table for the simple fire alarm system.
Complete the truth table.
Input Output X
A B
0 0
0 1
1 0
1 1
43