2015 A/L Physics Past Paper · Question 37 (English Medium)
Three gate circuits, one output
, and represent the binary input variables applied to the given circuits (A), (B) and (C). When outputs , and of the circuits for given input combinations are considered
Answer and explanation
Answer: (4) all three circuits give the same output.
What the question asks
This question shows three small circuits made of logic gates. The same three inputs , and go into each one.
What we must find: which of the outputs , and are the same for every input combination.
How we find it: write what each gate does, get one short rule for each output, then check all input combinations.
What each letter means:
, , : the inputs, each or .
, , : the outputs of circuits (A), (B) and (C).
: AND of and .
: OR of and .
: NOT of , it turns into and into .
Relevant theory
According to the above truth tables it is clear that the AND operation is, to give the output as logic 1 only when both inputs are at logic 1 state. Therefore, a logic expression can be given as "When both A and B inputs are 1, the output is 1" for the two input AND gate similarly for the three-input AND gate, the logic expression is "when all three inputs A, B and C are 1, the output is 1".
The truth for the two-input OR gate can be given as "When the input A or B is 1, the output is 1.
What is happening: an AND gate says 1 only when all its inputs are 1. An OR gate says 1 when any input is 1.
A small circle at a gate output means NOT: the answer is flipped. So NOR is OR then flip, and NAND is AND then flip.
For example, a reading lamp is wired so that it lights only when the main switch is on, and the wall switch or the bedside switch is on.
One electrician wires it one way. Another wires it a different way, with more switches and more wire.
If both lamps light in exactly the same cases, the two wirings do the same job, however different they look.
Reading the options
The inputs are , and . Each can be or , so there are combinations.
Circuit (A): an OR gate on and , then an AND with :
Circuit (B): AND , and AND , then an OR:
Circuit (C): a NOR on and gives . A NAND with the other input fixed at just flips it back:
Then an AND with :
Now every combination:
| | | | | | | |---|---|---|---|---|---| | 0 | 0 | 0 | 0 | 0 | 0 | | 0 | 0 | 1 | 0 | 0 | 0 | | 0 | 1 | 0 | 0 | 0 | 0 | | 0 | 1 | 1 | 0 | 0 | 0 | | 1 | 0 | 0 | 0 | 0 | 0 | | 1 | 0 | 1 | 1 | 1 | 1 | | 1 | 1 | 0 | 1 | 1 | 1 | | 1 | 1 | 1 | 1 | 1 | 1 |
The three output columns match in all rows. In words: each circuit gives only when is and at least one of , is .
All three circuits have the same rule.
(A)
OR, then AND with P
(B)
two ANDs, then OR
(C)
NOR, NAND with 1 flips it back, then AND
All three circuits give the same output, so (4).
(4) for every input combination.
Why the other options fail
(1) A and B do agree, but C agrees with them too. So "only A and B" is wrong.
(2) B and C agree, but A agrees with them too. So "only B and C" is wrong.
(3) A and C agree, but B agrees with them too. So "only A and C" is wrong.
(5) The three circuits look different, but every row of the table gives the same output from all three.
Conclusion
Each circuit works out to . All three give the same output. The answer is (4).
A NAND or NOR with one input tied to or often acts as a plain NOT. Spot it first, and the circuit gets simple.
Exam tip