Logic expressions and circuits
Diperkenalkan
8:32
Logika Boolean
Perhatikan chip ini dengan saksama. Tidak ada kecerdasan di dalamnya. Ia tidak bisa berpikir. Di dalamnya terdapat jutaan sakelar kecil, dan setiap sakelar hanya dapat berada dalam salah satu dua keadaan…
Narasi bahasa Inggris · takarir bahasa Inggris dan 中文 yang dapat dipilih
In this lesson
| English | Makna |
|---|---|
| logic circuit/ˈlɒdʒɪk ˈsɜːkɪt/ | sirkuit logika |
| problem statement/ˈprɒbləm ˈsteɪtmənt/ | pernyataan masalah |
| truth table/truːθ ˈteɪbl/ | tabel kebenaran |
| logic expression/ˈlɒdʒɪk ekˈspreʃn/ | ekspresi logika |
From statement to circuit
- Gates are combined into logic circuits 逻辑电路 to carry out a task.
- The same logic can be a problem statement 问题陈述, an expression, a circuit, or a truth table 真值表.
- You must move between all four.
Logic expressions 逻辑表达式
- A logic expression writes a circuit using letters and gate words.
- e.g.
(A AND B) OR (NOT C)means: doA AND B, doNOT C, then OR the two results.

Logic expressions & circuits
gates combine into circuits
Each gate has a rule; combine them to build a circuit — explore one gate at a time.
The expression (A AND B) OR (NOT C) means:
Kesulitan 1/5 · 100 koin + bonus kecil pada penyelesaian pertama hari ini
Work out each part — (A AND B) and (NOT C) — then OR them together.
Logic circuits
- A logic circuit joins gates: the output of one gate becomes the input of another.
- At IGCSE a circuit has up to three inputs and one output.

For X = (A AND B) OR C with A=1, B=0, C=1, what is X?
Kesulitan 1/5 · 100 koin + bonus kecil pada penyelesaian pertama hari ini
A AND B = 0; 0 OR C(=1) = 1, so X = 1.
From statement to truth table
- Problem → circuit: pick out the conditions and the logic words. "An alarm (X) sounds when the door is open (A) AND the system is on (B)" →
X = A AND B. - Completing a truth table: write all input combinations (3 inputs → 8 rows), work out each gate's output column in order, and the last column is the final output.
- Draw the circuit exactly as stated — don't simplify it.


Match each English phrase to its logic expression.
Kesulitan 2/5 · 140 koin + bonus kecil pada penyelesaian pertama hari ini
Turn the words into gates: "and" → AND, "or" → OR, "not" → NOT, "exactly one" → XOR.
How many rows does a truth table have for a circuit with 3 inputs?
Kesulitan 2/5 · 140 koin + bonus kecil pada penyelesaian pertama hari ini
Each input doubles the combinations: 2^3 = 8 rows (000 to 111).
When drawing a circuit from a problem statement, you should:
Kesulitan 1/5 · 100 koin + bonus kecil pada penyelesaian pertama hari ini
At IGCSE you draw the circuit as described — simplification is not required.
Worked example: a fan from a statement
A fan X switches on if the temperature is high (T = 1) and the window is not open (W = 0), or if the override switch is on (H = 1). Write the expression and find X when T = 1, W = 1, H = 0.
- The statement gives X = (T AND NOT W) OR H: a NOT gate on W feeds an AND gate with T, and that output goes into an OR gate with H.
- With T = 1, W = 1, H = 0: NOT W = 0, so T AND NOT W = 1 AND 0 = 0. Then 0 OR H = 0 OR 0 = 0: the fan stays off, because the window is open and there is no override.
How many rows does a truth table for a circuit with 4 inputs need?
Kesulitan 2/5 · 140 koin + bonus kecil pada penyelesaian pertama hari ini
$2^4 = 16$ combinations of inputs.
For X = (T AND NOT W) OR H, what is X when T = 0, W = 1, H = 1?
Kesulitan 1/5 · 100 koin + bonus kecil pada penyelesaian pertama hari ini
T AND NOT W = 0, but H = 1, so 0 OR 1 = 1.
You've got it
- a logic expression uses letters + AND/OR/NOT; a circuit chains gates (≤3 inputs, 1 output)
- turn a problem statement into an expression by spotting the logic words
- a truth table has $2^n$ rows ($n$ inputs); add a working column per gate
- draw the circuit exactly as stated, without simplifying