levo

Fundamentals of Computer Systems

Logic Gates and Their Truth Tables

  • 2 things to know
  • Paper 2
Start revising · £5/month

Overview

Recall questions on the truth tables of the NOT, AND, OR, XOR, NAND and NOR gates.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Numbers

Construct the truth table for a NAND gate.

Key term

Describe the standard distinctive-shape symbols for the OR, NOR and XOR gates.

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    Construct the truth table for a NOT gate.

    Model answer

    One input A, one output Q, where Q is the opposite of A. A = 0 gives Q = 1; A = 1 gives Q = 0. It is written Q = NOT A, or A with a bar over it.

  2. 2

    Construct the truth table for an AND gate.

    Model answer

    Two inputs A and B, output Q = 1 only when both inputs are 1. A = 0, B = 0 gives Q = 0; A = 0, B = 1 gives Q = 0; A = 1, B = 0 gives Q = 0; A = 1, B = 1 gives Q = 1. It is written Q = A AND B, or A.B.

  3. 3

    Construct the truth table for an OR gate.

    Model answer

    Two inputs A and B, output Q = 1 when at least one input is 1. A = 0, B = 0 gives Q = 0; A = 0, B = 1 gives Q = 1; A = 1, B = 0 gives Q = 1; A = 1, B = 1 gives Q = 1. It is written Q = A OR B, or A + B. Note that this is inclusive OR: it is 1 when both inputs are 1.

  4. 4

    Construct the truth table for an XOR gate.

    Model answer

    Two inputs A and B, output Q = 1 when the inputs are different and 0 when they are the same. A = 0, B = 0 gives Q = 0; A = 0, B = 1 gives Q = 1; A = 1, B = 0 gives Q = 1; A = 1, B = 1 gives Q = 0. It is written Q = A XOR B, and is exclusive OR: one or the other, but not both.

  5. 5

    Construct the truth table for a NAND gate.

    Model answer

    Two inputs A and B, output Q = 0 only when both inputs are 1; it is the inverse of AND. A = 0, B = 0 gives Q = 1; A = 0, B = 1 gives Q = 1; A = 1, B = 0 gives Q = 1; A = 1, B = 1 gives Q = 0. It is written Q = NOT (A AND B).

  6. 6

    Construct the truth table for a NOR gate.

    Model answer

    Two inputs A and B, output Q = 1 only when both inputs are 0; it is the inverse of OR. A = 0, B = 0 gives Q = 1; A = 0, B = 1 gives Q = 0; A = 1, B = 0 gives Q = 0; A = 1, B = 1 gives Q = 0. It is written Q = NOT (A OR B).

Other ways to work this

The same content, four other ways.

Everything in your subscription

Runs, plus a mode for every other kind of session.

1Flash
2Imposter
3Fade
4Brain dump

Learn every subtopic in runs of four questions

Facts flash and fade, a wrong word hides in some of them, and a brain dump decides which questions are locked in.

Fundamentals of Programming
Fundamentals of Data Structures
Fundamentals of Algorithms
Theory of Computation

Cram the night before, weakest topic first

A quick scan finds your weakest topics. Recall each fact you missed three times in a row.

A driver is .
softwarehardwarestorage

Blank Blitz consolidates the facts

Rapid timed gap-fills on the terms and numbers you need to recall without thinking.

✓What it iscovered
~Why it happenspartly there
How long it lastsnot there yet

Explain It tests your understanding

Explain a concept in your own words and see which of its points you covered.

Head means the first single element of a non-empty list.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The faults are the mistakes students make most often.

721941163128510

Brain Breaks between sessions

Short focus games to reset attention, so the next set lands better than the last.

Every question in Fundamentals of Computer Systems, on a schedule.

Learn it in runs of four questions, each ending on a brain dump against the clock. Every question you lock in comes back the next day, then at longer gaps, each time just before you would forget it.

Or £46 a year, about £3.83 a month. Cancel anytime.