Digital Logic
Math · Intermediate · Lesson 1 of 7

AND, OR, NOT

The basic building blocks

An interactive lesson with 6 steps, about 5 minutes: you predict, drag and solve, with instant feedback on every answer. It runs in your browser and needs JavaScript.

What you’ll learn

  • AND: 1 only if all inputs are 1. OR: 1 if any input is 1. NOT: flips.
  • A truth table lists the output for all 2n2^n input combinations.
  • XOR outputs 1 when its inputs differ.

Steps

  1. Bits as voltages
  2. An AND gate
  3. Turn off the lamp
  4. Rows in the table
  5. A mystery gate
  6. Name that gate