2015 A/L Physics Past Paper · Question 37 (English Medium)

Three gate circuits, one output

PP, QQ and RR represent the binary input variables applied to the given circuits (A), (B) and (C). When outputs F1F_1, F2F_2 and F3F_3 of the circuits for given input combinations are considered

  1. (1) only A and B give the same output.
  2. (2) only B and C give the same output.
  3. (3) only A and C give the same output.
  4. (4) all three circuits give the same output.
  5. (5) all three circuits give different outputs.
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 PP, QQ and RR go into each one.

What we must find: which of the outputs F1F_1, F2F_2 and F3F_3 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 88 input combinations.

What each letter means:

PP, QQ, RR: the inputs, each 00 or 11.

F1F_1, F2F_2, F3F_3: the outputs of circuits (A), (B) and (C).

Q⋅RQ\cdot R: AND of QQ and RR.

Q+RQ+R: OR of QQ and RR.

X‾\overline{X}: NOT of XX, it turns 00 into 11 and 11 into 00.

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 PP, QQ and RR. Each can be 00 or 11, so there are 2×2×2=82\times2\times2=8 combinations.

Circuit (A): an OR gate on QQ and RR, then an AND with PP:

F1=P⋅(Q+R)F_1=P\cdot(Q+R)

Circuit (B): PP AND QQ, and PP AND RR, then an OR:

F2=P⋅Q+P⋅RF_2=P\cdot Q+P\cdot R

Circuit (C): a NOR on QQ and RR gives Q+R‾\overline{Q+R}. A NAND with the other input fixed at 11 just flips it back:

Q+R‾⋅1‾=Q+R\overline{\overline{Q+R}\cdot1}=Q+R

Then an AND with PP:

F3=P⋅(Q+R)F_3=P\cdot(Q+R)

Now every combination:

| PP | QQ | RR | F1F_1 | F2F_2 | F3F_3 | |---|---|---|---|---|---| | 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 88 rows. In words: each circuit gives 11 only when PP is 11 and at least one of QQ, RR is 11.

P∗(Q+R−Q∗R)P * (Q + R - Q * R)

All three circuits have the same rule.

(A)

P⋅(Q+R)P\cdot(Q+R)

OR, then AND with P

(B)

P⋅Q+P⋅R=P⋅(Q+R)P\cdot Q+P\cdot R=P\cdot(Q+R)

two ANDs, then OR

(C)

NOR, NAND with 1 flips it back, then AND

All three circuits give the same output, so (4).

(4) F1=F2=F3=P⋅(Q+R)F_1=F_2=F_3=P\cdot(Q+R) 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 P⋅(Q+R)P\cdot(Q+R). All three give the same output. The answer is (4).

A NAND or NOR with one input tied to 11 or 00 often acts as a plain NOT. Spot it first, and the circuit gets simple.

Exam tip

தமிழ் · සිංහල