A brief note on NAND, NOR and XOR Gates . Read it before a test. Try each question at the end before you open its answer.
The gates NAND (NOT AND): 0 only when both inputs are 1. Column: 1, 1, 1, 0. NOR (NOT OR): 1 only when both inputs are 0. Column: 1, 0, 0, 0. XOR, also called EOR: 1 when the inputs differ. Column: 0, 1, 1, 0. The columns are in the rows 0 0, 0 1, 1 0, 1 1.
The symbols NAND: the AND shape with a small circle at the output. NOR: the OR shape with a small circle at the output. XOR: the OR shape with an extra curved line behind its back. Naming a gate from its column One 1: AND (in the row 1 1) or NOR (in the row 0 0). Two 1s: XOR. Three 1s: OR (its 0 in the row 0 0) or NAND (its 0 in the row 1 1). Completing a truth table Count the rows: 4 for two inputs, 8 for three. Fill the inputs by counting up in binary. Add a working column for each gate. Fill in the output and check a row by hand. Practice with new numbers
A program to try The program builds NAND, NOR and XOR from NOT, AND and OR, and prints each column.
Read it first. Then run it. Do the columns match the list above?
1. Print the column of NOT(XOR) for each pair. Which gate in the list has that column turned over?
Mistakes to avoid XOR for 1 1. XOR gives 0 there, because the inputs are the same. NAND and NOR mixed up. NAND has one 0. NOR has one 1. A small circle on XOR. XOR has an extra curved line, not a circle. Rows out of order. Count up in binary every time. Check yourself What does a NAND gate give for 1 and 1? Stuck? Show a hint Show the answerWhich gate gives the column 1, 0, 0, 0? Stuck? Show a hint Show the answerWhat does XOR give for 0 and 1? Stuck? Show a hint Show the answerWhich row comes after 0 1 1 in a table with three inputs? Stuck? Show a hint Show the answerWhat extra mark does the XOR symbol have? 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).