levo

Fundamentals of Computer Systems

Logic Gates and Their Truth Tables

  • 2 things to know
  • Paper 2

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.

What is inside Levo

Six ways to work the same material.

1Closed book
2Open book
3Closed book

The 3-step method, run for you

Answer cold, learn it, then prove it stuck. Levo tracks the jump between your first attempt and your last.

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

Cram a whole paper in one sitting

Sort every topic into what you know and what you do not, then drill only the weak ones.

A driver is .
softwarehardwarestorage

Blank Blitz makes facts automatic

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

AThe integer 5 is 0101.
B0.75 is 1/2 + 1/4.
CThe fraction bits are 1100.

Build It gets the exam shape right

Assemble a full-mark answer from its marking points, in the order an examiner wants them.

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

Test It catches misconceptions

Spot the fault in a statement. The traps are the mistakes students actually make.

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.

Attempt a question from memory, write the correct version, then attempt it again. Levo records the jump between your first attempt and your last, and brings each question back on the day you are due to forget it.

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