2024 A/L Physics Past Paper · Question 40 (English Medium)
The Boolean expression of a logic circuit
Consider the logic circuit shown with three inputs , and . What is the Boolean expression that best represents the output of the circuit?
Answer and explanation
Answer: (1)
What the question asks
This question is about a small logic circuit with three switches, A, B and C, and one output F.
Each gate is a simple rule. A NOT gate flips its input. An AND gate gives 1 only when both its inputs are 1. An OR gate gives 1 when either input is 1.
Input B splits into two wires. One goes through the NOT gate to the top AND gate. The other goes straight to the bottom AND gate.
What we must find: the Boolean expression for F.
How we find it: follow each wire into its gate and write what comes out of each gate. Then join the two AND outputs with the OR gate.
Relevant theory
F = Ā Where Ā is the inversion of A
Boolean expression for the two-input AND gate is written as,
F = A.B
Boolean expression for the OR gate is, F = A + B
What is happening: a NOT gate gives , the inversion of its input. An AND gate multiplies, . An OR gate adds, , in Boolean algebra.
So each gate turns the expressions on its input wires into one new expression on its output wire.
For example, a garden light switches on when it is dark AND someone walks past, OR when the test button is pressed AND the power is on.
It is 9 pm and a cat walks past:
In words: each AND part needs both of its conditions, and the OR lets either part turn the light on.
Reading the options
Check one row: , , gives , so .
Top AND gate: and
passes the NOT gate first, so this gate gets .
Bottom AND gate: and
This wire leaves before the NOT gate, and comes in directly.
OR gate
The OR gate adds the two AND outputs.
is option (1).
Why the other options fail
puts the NOT gate on the bottom AND gate too. But the wire to the bottom gate leaves before the NOT gate, so that gate gets itself. At , , the circuit gives , but .
moves the NOT gate from the top gate to the bottom gate. In the figure the NOT gate feeds the top gate, next to . At , , the circuit gives , but .
leaves out the NOT gate. At , , the top gate gets and , so . gives .
puts a NOT gate on , but goes straight into the bottom AND gate. At , , the circuit gives , but .
Conclusion
. The answer is (1).
Follow the wire, not the letter: B splits before the NOT gate, so only the top gate gets B̄.
Exam tip