levo

Boolean Algebra

Logic Gates and Truth Tables

  • 3 things to know
  • Component 01
Start revising · £5/month

Overview

Recall questions on truth tables, the AND, OR, NOT, XOR, NAND and NOR gates with their symbols and tables, reading and drawing gate diagrams, writing expressions from circuits, and proving equivalence with a truth table.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

Describe the XOR gate and give its truth table.

Key term

Complete the truth table for Q = A.B + C'.

Key term

How do you use a truth table to prove that two Boolean expressions are equivalent?

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    What is a truth table, and how many rows does one need?

    Model answer

    A table listing every possible combination of the input values to a logic circuit or expression, with the resulting output for each. Because each input is either 0 or 1, a circuit with n inputs needs 2 to the power n rows: 4 rows for two inputs, 8 for three, 16 for four. The input columns are normally written in ascending binary order so that no combination is missed.

  2. 2

    Describe the AND gate: its symbol, its behaviour and how the operation is written.

    Model answer

    The symbol is a shape with a flat left edge and a semicircular right edge, like a capital D, with the inputs entering on the left and the single output leaving from the curved right side. The output is 1 only when every input is 1, and 0 otherwise. Common ways of writing it are A.B, AB, A AND B and A and B joined by a wedge; several notations are accepted, so use whichever you are comfortable with as long as it is unambiguous.

  3. 3

    Give the truth table for a two-input AND gate.

    Model answer

    With inputs A and B: 0 and 0 give 0; 0 and 1 give 0; 1 and 0 give 0; 1 and 1 give 1. Only the last row produces a 1.

  4. 4

    Describe the OR gate and give its truth table.

    Model answer

    The symbol is a shield or arrowhead shape: a curved left edge that the inputs pass through, with the two upper and lower edges sweeping to a point on the right where the output leaves. The output is 1 when at least one input is 1. Truth table: 0,0 gives 0; 0,1 gives 1; 1,0 gives 1; 1,1 gives 1. It is usually written A+B, A OR B, or with a vee between the terms.

  5. 5

    Describe the NOT gate and give its truth table.

    Model answer

    The symbol is a small triangle pointing right with a circle (a bubble) on its tip, with one input on the left and one output on the right. It inverts its single input: an input of 0 gives an output of 1, and an input of 1 gives an output of 0. It may be written as A with a bar over it, as A', or as a not-sign in front of A - all are accepted.

  6. 6

    Describe the XOR gate and give its truth table.

    Model answer

    The symbol is the OR shape with an additional curved line drawn just outside and parallel to its curved left edge. Exclusive OR gives an output of 1 when the inputs are different and 0 when they are the same. Truth table: 0,0 gives 0; 0,1 gives 1; 1,0 gives 1; 1,1 gives 0. It is written with a plus sign inside a circle, or as A XOR 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.

Processors: Structure, Performance and Types
Input, Output and Storage
Systems Software
Applications Generation

Cram the night before, weakest topic first

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

If it matches, the search .
succeedsfailsrestarts

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.

A global variable means a variable reachable from anywhere in the program.
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 Boolean Algebra, 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.