A brief note on NOT, AND and OR Gates . Read it before a test. Try each question at the end before you open its answer.
The gates NOT: one input. The output is the opposite. X = NOT A. Column: 1, 0. AND: two inputs. The output is 1 only when both are 1. X = A AND B. Column: 0, 0, 0, 1. OR: two inputs. The output is 0 only when both are 0. X = A OR B. Column: 0, 1, 1, 1. The symbols NOT: a triangle with a small circle at its point. AND: a flat back and a round front. OR: a curved back and a pointed front. Every gate in the syllabus except NOT has exactly two inputs.
Truth tables One input gives 2 rows, two inputs give 4 rows and three inputs give 8 rows. Write the rows in binary order: 0 0, 0 1, 1 0, 1 1. The first input changes slowest. For a circuit, add a middle column for each gate's output. Work from the inputs towards X. A worked example Find X for X = (NOT A) AND B when A = 0 and B = 1.
The NOT gate. NOT 0 = 1. The AND gate. 1 AND 1 = 1. The answer. X = 1. Practice with new numbers
A program to try The program writes each gate as a function and prints its output column.
Read it first. Then run it. Do the columns match the list above?
1. Add a line that prints the column of NOT(AND(a, b)). Predict it before you run it.
Mistakes to avoid AND with one input at 1. AND needs both inputs to be 1. OR without the row 1 1. OR gives 1 there too. A three-input gate. Use two two-input gates instead. Rows out of order. Count up in binary every time. Check yourself What does an AND gate give when A = 0 and B = 1? Stuck? Show a hint Show the answerWhat does an OR gate give when A = 1 and B = 1? Stuck? Show a hint Show the answerHow many rows does a truth table with three inputs have? Stuck? Show a hint Show the answerA heater comes on when it is cold (C = 1) and the window is shut (W = 1). Write the expression for the heater H. Stuck? Show a hint Show the answerWhich gate symbol has a curved back and a pointed front? Stuck? Show a hint Show the answerSources Cambridge International, IGCSE Computer Science 0478 syllabus for 2026, 2027 and 2028, topic 10 and section 4 (logic gate symbols).