Fox, the FoxSumKids mascotFoxSumKids Start FoxSumKids

Truth tables: math practice, grade 9

Practise “Truth tables” online for free. Five right answers in a row make the tasks harder, two mistakes in a row make them easier. Right answers earn coins for games.

  • grade 9
  • Levels 1–5
  • Step-by-step solutions
  • Free

Start FoxSumKids

What the topic is about

Truth tables: 1 is true and 0 is false; ∧ means "and", ∨ means "or", ¬ means "not", → means "if…, then". Find the value of an expression, or count the sets of values that make it true.

Where it leads

Truth tables are the base of computer science: processors, conditions in programs and search filters run on them. In higher grades and at university logic becomes a subject of its own. Going through every combination of values carefully is an important skill in maths and programming alike.

How to solve

  • Work from the inside of the brackets out, writing down each value.
  • Two letters have 4 sets of values, three have 8: list them in order, as when counting in binary.
  • A → B is false only when A = 1 and B = 0.

A worked example

1 is true, 0 is false, ∧ means "and", ∨ means "or", ¬ means "not". For how many sets of values of A, B is the expression true (equal to 1)?

(A ∨ B) ∧ (B ∧ A) = ?

Answer: 1

  1. Sets of values in all: 4. Check each one.
  2. The expression is true for: A = 1, B = 1.
  3. Such sets: 1.

Typical mistakes

  • Missing a set while going through them.
  • Applying ¬ to the wrong part of the expression.

How to tell it is learnt

  • Builds a table for two or three variables without missing rows.
  • Works out a complex expression step by step.
  • Knows that "if A, then B" is false only when A = 1 and B = 0.

How to help at home

Compare with switches: "and" is two switches in a row, "or" two side by side. When is the lamp on?

A game without a phone

Make a "logic circuit" from switches or cards: the lamp is on if switch A and switch B are on. Write the table for all four cases, then for "or". Talk about the rule "If you have done your homework, you can play": in which case is the rule broken? Only in one.

Example problems

These are only examples: the practice makes new tasks every time. 🖨 Printable worksheet

  1. 1 is true, 0 is false, ∧ means "and", ∨ means "or", ¬ means "not". What is the value of the expression?

    A = 1, B = 0
    A ∨ (B ∧ A)

    Answer

    1

    1. B ∧ A = 0
    2. A ∨ (B ∧ A) = 1
  2. 1 is true, 0 is false, ∧ means "and", ∨ means "or", ¬ means "not". What is the value of the expression?

    A = 0, B = 0, C = 0
    (C ∧ (B ∨ A)) ∧ B

    Answer

    0

    1. B ∨ A = 0
    2. C ∧ (B ∨ A) = 0
    3. (C ∧ (B ∨ A)) ∧ B = 0
  3. 1 is true, 0 is false, ∧ means "and", ∨ means "or", ¬ means "not". For how many sets of values of A, B is the expression true (equal to 1)?

    B ∨ ((A ∨ B) ∨ A) = ?

    Answer

    3

    1. Sets of values in all: 4. Check each one.
    2. The expression is true for: A = 0, B = 1, A = 1, B = 0, A = 1, B = 1.
    3. Such sets: 3.
  4. 1 is true, 0 is false, ∧ means "and", ∨ means "or", ¬ means "not". For how many sets of values of A, B is the expression true (equal to 1)?

    B ∨ ¬A = ?

    Answer

    3

    1. Sets of values in all: 4. Check each one.
    2. The expression is true for: A = 0, B = 0, A = 0, B = 1, A = 1, B = 1.
    3. Such sets: 3.
  5. 1 is true, 0 is false, ∧ means "and", ∨ means "or", ¬ means "not". For how many sets of values of A, B, C is the expression true (equal to 1)?

    B ∨ (A ∧ (B ∨ C)) = ?

    Answer

    5

    1. Sets of values in all: 8. Check each one.
    2. The expression is true for: A = 0, B = 1, C = 0, A = 0, B = 1, C = 1, A = 1, B = 0, C = 1, A = 1, B = 1, C = 0, A = 1, B = 1, C = 1.
    3. Such sets: 5.
  6. 1 is true, 0 is false, ∧ means "and", ∨ means "or", ¬ means "not", → means "if…, then". What is the value of the expression?

    A = 1, B = 1, C = 0
    (A ∧ (A → C)) → ¬B

    Answer

    1

    1. A → C = 0
    2. A ∧ (A → C) = 0
    3. ¬B = 0
    4. (A ∧ (A → C)) → ¬B = 1

Practise “Truth tables” online

Free and with no sign-up: the first task opens in a couple of seconds.

Start FoxSumKids

More topics: Grade 9

← All topics