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. /NOT, AND and OR Gates: Quick Revision
Computer Science

NOT, AND and OR Gates: Quick Revision

A brief note on the NOT, AND and OR gates: their symbols, truth tables and expressions, the order of the rows, circuits of two gates 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 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.

  1. The NOT gate. NOT 0 = 1.
  2. The AND gate. 1 AND 1 = 1.
  3. 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

  1. What does an AND gate give when A = 0 and B = 1?
  1. What does an OR gate give when A = 1 and B = 1?
  1. How many rows does a truth table with three inputs have?
  1. A heater comes on when it is cold (C = 1) and the window is shut (W = 1). Write the expression for the heater H.
  1. Which gate symbol has a curved back and a pointed front?

Sources

  • Cambridge International, IGCSE Computer Science 0478 syllabus for 2026, 2027 and 2028, topic 10 and section 4 (logic gate symbols).
← All Notes
← COUNT, SUM, AND and OR: Quick RevisionNAND, NOR and XOR Gates: 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. Truth tables
  4. A worked example
  5. Practice with new numbers
  6. A program to try
  7. Mistakes to avoid
  8. Check yourself
  9. Sources

Goes with the lesson

  1. The OR gate and joining two gatesNOT, AND and OR Gates

More notes on this topic

  1. Logic Circuits and Truth Tables: Quick Revision
  2. NAND, NOR and XOR 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 →