Skip to main content
SingaporeElectronicsSyllabus dot point

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.

Generated by Claude Opus 4.89 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this dot point is asking
  2. The answer
  3. Examples in context
  4. Try this

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 nn inputs there are 2n2^n combinations: two inputs give 44 rows, three inputs give 88 rows. Always list them in standard binary counting order (00,01,10,1100, 01, 10, 11 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:

  1. Write the input columns and list every combination in binary order.
  2. Add a column for the first gate's output and fill it using that gate's rule.
  3. Add columns for each later gate, working from the inputs towards the final output, filling each from the columns it depends on.
  4. The last column is the circuit output QQ.

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 Aˉ\bar{A} and BB gives Q=AˉBQ = \bar{A} \cdot B. 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 23=82^3 = 8 combinations, so eight rows.

  • Cue. Write the Boolean expression for a circuit where AA is inverted then ORed with BB. The NOT gives Aˉ\bar{A}, then OR with BB: Q=Aˉ+BQ = \bar{A} + B.

  • 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 Aˉ\bar{A}. The AND gate combines Aˉ\bar{A} with BB, so Q=AˉBQ = \bar{A} \cdot B.

Truth table (columns A, B, then Aˉ\bar{A}, then Q):

A=0 B=0: Aˉ=1\bar{A}=1, Q = 101 \cdot 0 = 0.
A=0 B=1: Aˉ=1\bar{A}=1, Q = 111 \cdot 1 = 1.
A=1 B=0: Aˉ=0\bar{A}=0, Q = 000 \cdot 0 = 0.
A=1 B=1: Aˉ=0\bar{A}=0, Q = 010 \cdot 1 = 0.

What markers reward: the expression Q=AˉBQ = \bar{A} \cdot B, an intermediate column for Aˉ\bar{A}, and the output 1 only on the row A=0,B=1A=0, B=1. 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