2016 A/L Physics Past Paper · Question 10 (English Medium)
Which gates invert the input?
Which of the following gates operate/s according to the truth table given?
Answer and explanation
Answer: (4) P and R only
What the question asks
This question is about logic gates. A logic gate takes inputs that are either (no voltage) or (here ) and gives one output, or .
The truth table asks for a gate that turns into and into : it must invert . Two of the gates have a second input fixed at , which means that input is always .
What we must find: which of the gates P, Q and R follow this truth table.
How we find it: we put and then into each gate, read its output , and compare with the table.
What each letter means:
: the input that changes, or .
: the second input of gates Q and R, tied to , so .
: the output of the gate.
: the inversion of , so and .
Relevant theory
The small bubble (or circle) marked at the output of the circuit symbol of NOT gate is to indicate that the output is inverted with respect to input.
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.
It is clear from this truth table that the logic operation of the XOR gate is to output 1 when only one of the inputs A or B is 1. So, if both A and B inputs are 1 then the output will be 0.
What is happening: the table wants .
A NOT gate does exactly this on its own.
An AND gate with gives only when is also . So its output simply copies :
An XOR gate with gives only when is , because then just one input is . So it inverts :
For example, the light inside a fridge.
A small switch sits at the edge of the door. When the door is shut, the switch is pressed in, and the light is off. When you open the door, the switch is let go, and the light comes on.
Pressed gives off, released gives on: the light always does the opposite of the switch, just like a NOT gate.
Reading the options
Each option is a set of gates claimed to follow the table. So we test P, Q and R one at a time, then choose the option that lists exactly the right ones.
Reasoning and calculation
(P) a NOT gate with input
A NOT gate inverts its input: gives , and gives . This is the table. P works.
P
(Q) an AND gate with inputs and
With the AND gate copies : gives , and gives . That is the opposite of the table. Q does not work.
Q
(R) an XOR gate with inputs and
With the XOR gate gives when (only one input is ) and when (both inputs are ). This is the table. R works.
R
Side by side, with :
| | table | P | Q | R | |---|---|---|---|---| | | | | | | | | | | | |
The columns for P and R match the table. The column for Q is the table upside down.
Why the other options fail
P works, but R works too: an XOR gate with one input held at inverts the other input.
Q does not work: an AND gate with one input at just copies . And R, which works, is left out.
Q copies instead of inverting it, and P, a NOT gate, is left out.
P and R work, but Q does not: with its output is , not .
Conclusion
The table is . The NOT gate (P) and the XOR gate with (R) both invert . The AND gate with (Q) copies it. The answer is (4).
An input tied to is a fixed . Then AND with copies the other input, and XOR with inverts it.
Exam tip