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?

  1. (1) P only
  2. (2) P and Q only
  3. (3) Q and R only
  4. (4) P and R only
  5. (5) All P, Q and R
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 00 (no voltage) or 11 (here +5 V+5\ \text{V}) and gives one output, 00 or 11.

The truth table asks for a gate that turns 00 into 11 and 11 into 00: it must invert AA. Two of the gates have a second input fixed at +5 V+5\ \text{V}, which means that input is always 11.

What we must find: which of the gates P, Q and R follow this truth table.

How we find it: we put A=0A=0 and then A=1A=1 into each gate, read its output FF, and compare with the table.

What each letter means:

AA: the input that changes, 00 or 11.

BB: the second input of gates Q and R, tied to +5 V+5\ \text{V}, so B=1B=1.

FF: the output of the gate.

Aˉ\bar{A}: the inversion of AA, so 0ˉ=1\bar{0}=1 and 1ˉ=0\bar{1}=0.

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 F=AˉF=\bar{A}.

A NOT gate does exactly this on its own.

An AND gate with B=1B=1 gives 11 only when AA is also 11. So its output simply copies AA:

F=AF=A

An XOR gate with B=1B=1 gives 11 only when AA is 00, because then just one input is 11. So it inverts AA:

F=AˉF=\bar{A}

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 AA

A NOT gate inverts its input: A=0A=0 gives F=1F=1, and A=1A=1 gives F=0F=0. This is the table. P works.

P

(Q) an AND gate with inputs AA and +5 V+5\ \text{V}

With B=1B=1 the AND gate copies AA: A=0A=0 gives F=0F=0, and A=1A=1 gives F=1F=1. That is the opposite of the table. Q does not work.

Q

(R) an XOR gate with inputs AA and +5 V+5\ \text{V}

With B=1B=1 the XOR gate gives 11 when A=0A=0 (only one input is 11) and 00 when A=1A=1 (both inputs are 11). This is the table. R works.

R

Side by side, with B=1B=1:

| AA | table FF | P | Q | R | |---|---|---|---|---| | 00 | 11 | 11 | 00 | 11 | | 11 | 00 | 00 | 11 | 00 |

The columns for P and R match the table. The column for Q is the table upside down.

A+B−2∗A∗BA + B - 2*A*B

Why the other options fail

P works, but R works too: an XOR gate with one input held at 11 inverts the other input.

Q does not work: an AND gate with one input at 11 just copies AA. And R, which works, is left out.

Q copies AA instead of inverting it, and P, a NOT gate, is left out.

P and R work, but Q does not: with A=0A=0 its output is 00, not 11.

Conclusion

The table is F=AˉF=\bar{A}. The NOT gate (P) and the XOR gate with +5 V+5\ \text{V} (R) both invert AA. The AND gate with +5 V+5\ \text{V} (Q) copies it. The answer is (4).

An input tied to +5 V+5\ \text{V} is a fixed 11. Then AND with 11 copies the other input, and XOR with 11 inverts it.

Exam tip

தமிழ் · සිංහල