How do we work out the output of several logic gates connected together, for every possible combination of inputs?
Derive the truth table of a combinational logic circuit built from two or more gates and write its Boolean expression
A focused answer to the O-Level Electronics outcome on combinational logic. Building the truth table of a multi-gate circuit step by step and writing its Boolean expression.
Reviewed by: AI editorial process; not yet individually human-reviewed
Have a quick question? Jump to the Q&A page
Jump to a section
What this dot point is asking
SEAB wants you to take a circuit made of two or more logic gates, work out its output for every possible input combination (its truth table), and write its Boolean expression. The central insight is that a combinational circuit has no memory: its output depends only on the inputs present right now, so you can work it out gate by gate using intermediate columns in a table.
The answer
What combinational logic is
A combinational logic circuit is built by connecting basic gates (AND, OR, NOT, NAND, NOR) so that the output depends only on the present combination of inputs. It has no memory of past inputs, unlike a latch or a counter. Because it has no memory, every behaviour is captured completely by a truth table listing the output for each input combination.
Listing the input combinations
For inputs there are combinations: two inputs give rows, three inputs give rows. Always list them in standard binary counting order ( for two inputs) so that no combination is forgotten and the table is easy to check.
Working through the gates with intermediate columns
The reliable method is to add a column for the output of each gate inside the circuit:
- Write the input columns and list every combination in binary order.
- Add a column for the first gate's output and fill it using that gate's rule.
- Add columns for each later gate, working from the inputs towards the final output, filling each from the columns it depends on.
- The last column is the circuit output .
These intermediate columns turn a confusing multi-gate circuit into a series of simple single-gate steps.
Writing the Boolean expression
The Boolean expression is built the same way, from the inputs outward. Replace each gate with its operator: AND becomes a dot, OR becomes a plus, NOT becomes a bar, and use brackets to show which signals feed which gate. For example, an AND fed by and gives . The expression and the truth table describe the same circuit in two languages.
Examples in context
Example 1. A two-of-three voting circuit. A control system acts only when at least two of three sensors agree. Combining the sensors with AND and OR gates produces an output that is 1 whenever any two inputs are high. Deriving its eight-row truth table confirms the circuit behaves correctly before it is built, which is the everyday value of truth-table analysis.
Example 2. An exclusive-OR comparison. The circuit in the worked example outputs 1 only when its two inputs differ. This exclusive-OR behaviour is used to compare two bits and flag when they are not equal, a building block inside adders and error checkers. A few basic gates, analysed by truth table, deliver a genuinely useful function.
Try this
Cue. State how many rows a truth table needs for a circuit with three inputs. Three inputs give combinations, so eight rows.
Cue. Write the Boolean expression for a circuit where is inverted then ORed with . The NOT gives , then OR with : .
Cue. Explain why intermediate columns help when deriving a truth table. They break a multi-gate circuit into single-gate steps, so each column uses just one simple gate rule, reducing errors.
Exam-style practice questions
Practice questions written in the style of SEAB exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.
Original5 marksA logic circuit has two inputs A and B. A is inverted by a NOT gate, and its output is fed with B into an AND gate to give the output Q. Write the Boolean expression for Q and derive its complete truth table.Show worked answer →
The NOT gate gives . The AND gate combines with , so .
Truth table (columns A, B, then , then Q):
A=0 B=0: , Q = = 0.
A=0 B=1: , Q = = 1.
A=1 B=0: , Q = = 0.
A=1 B=1: , Q = = 0.
What markers reward: the expression , an intermediate column for , and the output 1 only on the row . The intermediate column earns method marks.
Original4 marksExplain what is meant by a combinational logic circuit and describe a systematic method for finding its truth table.Show worked answer →
A combinational logic circuit is one whose output depends only on the present combination of its inputs, with no memory of previous inputs. It is built by connecting basic gates together.
A systematic method: list every input combination in binary order, add a column for the output of each intermediate gate, fill these in gate by gate working from the inputs towards the output, and finally fill the output column from the last gate.
What markers reward: output depends only on present inputs (no memory), and a clear step-by-step method using intermediate columns in binary input order.
Related dot points
- State the function, symbol, truth table and Boolean expression of the AND, OR and NOT logic gates
A focused answer to the O-Level Electronics outcome on the basic logic gates. The AND, OR and NOT gates with their symbols, truth tables and Boolean expressions.
- State the function, truth table and Boolean expression of the NAND and NOR gates and explain why NAND is universal
A focused answer to the O-Level Electronics outcome on NAND and NOR gates. Their truth tables and Boolean expressions as inverted AND and OR, and why NAND is a universal gate.
- Describe digital logic levels, explain binary representation, and convert between small binary and denary numbers
A focused answer to the O-Level Electronics outcome on digital signals. Logic 0 and 1, why two levels are robust, binary place values, and converting between binary and denary numbers.
- Design a simple logic system from a written specification by building its truth table and selecting the gates needed
A focused answer to the O-Level Electronics outcome on designing logic systems. Turning a written specification into a truth table, a Boolean expression and a gate circuit.