HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Notes
  2. /NAND, NOR and XOR Gates: Quick Revision
Computer Science

NAND, NOR and XOR Gates: Quick Revision

A brief note on the NAND, NOR and XOR gates and on completing truth tables: symbols, output columns, the order of the rows, naming a gate from its column and the usual slips, with practice, a program and questions to check yourself.

StemPy LabWritten by StemPy Lab
Log in to save

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

  1. Count the rows: 4 for two inputs, 8 for three.
  2. Fill the inputs by counting up in binary.
  3. Add a working column for each gate.
  4. 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

  1. What does a NAND gate give for 1 and 1?
  1. Which gate gives the column 1, 0, 0, 0?
  1. What does XOR give for 0 and 1?
  1. Which row comes after 0 1 1 in a table with three inputs?
  1. What extra mark does the XOR symbol have?

Sources

  • Cambridge International, IGCSE Computer Science 0478 syllabus for 2026, 2027 and 2028, topic 10 and section 4 (logic gate symbols).
← All Notes
← NOT, AND and OR Gates: Quick RevisionLogic Circuits and Truth Tables: Quick Revision →
More onComputer Science › Boolean Logic

Discussion (0)

Log in to join the discussion.

Loading…

On this page

  1. The gates
  2. The symbols
  3. Naming a gate from its column
  4. Completing a truth table
  5. Practice with new numbers
  6. A program to try
  7. Mistakes to avoid
  8. Check yourself
  9. Sources

Goes with the lesson

  1. Completing truth tablesNAND, NOR and XOR Gates and Truth Tables

More notes on this topic

  1. Logic Circuits and Truth Tables: Quick Revision
  2. NOT, AND and OR Gates: Quick Revision
  3. COUNT, SUM, AND and OR: Quick Revision
  4. SELECT, WHERE and ORDER BY: Quick Revision
  5. Database Tables and Keys: Quick Revision
All notes on this topic →