Fox, the FoxSumKids mascotFoxSumKids Start FoxSumKids

Logic circuits: math practice, grade 12

Practise “Logic circuits” 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 12
  • Levels 1–5
  • Step-by-step solutions
  • Free

Start FoxSumKids

What the topic is about

Logic circuits: AND (&), OR (≥1), NOT (1 with a circle) and exclusive OR (=1) gates joined by wires. The task is to find the output, count the input sets that give 1, or write the circuit as a formula.

Where it leads

Logic circuits are what processors, memory and all digital devices are made of: AND, OR and NOT gates make adders and whole computers. The topic links maths with computer science and physics.

How to solve

  • Go from the inputs to the output and write the value on every wire.
  • AND gives 1 only if every input is 1; OR if at least one is; =1 if the number of ones is odd.
  • To write the formula, start with the gates at the inputs and put them into the next ones.

A worked example

& is AND, ≥1 is OR, =1 is exclusive OR, 1 is NOT, a circle at the output means NOT. For how many sets of values of A, B, C is the output Y equal to 1?

Answer: 4

  1. Y = (C ∧ ¬(A ∧ B)) ∨ (¬C ∧ (A ∧ B))
  2. The expression is true for: A = 0, B = 0, C = 1, A = 0, B = 1, C = 1, A = 1, B = 0, C = 1, A = 1, B = 1, C = 0.
  3. Such sets: 4.

Typical mistakes

  • Missing the circle of negation at a gate’s output.
  • Mixing up OR and exclusive OR.

How to tell it is learnt

  • Finds the output of a circuit for given inputs.
  • Makes the truth table of a circuit.
  • Writes a circuit as a formula and recognises the formula of a circuit.

How to help at home

Build or draw “AND” (in series) and “OR” (in parallel) circuits with a battery, a bulb and two switches. Make a table: when is the bulb on?

A game without a phone

Draw a “burglar alarm” circuit: the siren goes off if the door OR the window is open AND the alarm is on. Make a table and check when it goes off. Then design a circuit for a door with two keys.

Example problems

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

  1. & is AND, ≥1 is OR, =1 is exclusive OR, 1 is NOT, a circle at the output means NOT. What is at the output Y?

    A = 1, B = 0

    Answer

    0

    1. Y = B ∧ (A ∨ B)
    2. Y = 0
  2. & is AND, ≥1 is OR, =1 is exclusive OR, 1 is NOT, a circle at the output means NOT. What is at the output Y?

    A = 1, B = 0

    Answer

    0

    1. Y = B ∧ ((B ∧ ¬A) ∨ (¬B ∧ A))
    2. Y = 0
  3. & is AND, ≥1 is OR, =1 is exclusive OR, 1 is NOT, a circle at the output means NOT. For how many sets of values of A, B, C is the output Y equal to 1?

    Answer

    3

    1. Y = ¬(¬(C ∨ ((A ∧ ¬B) ∨ (¬A ∧ B))) ∨ B)
    2. The expression is true for: A = 0, B = 0, C = 1, A = 1, B = 0, C = 0, A = 1, B = 0, C = 1.
    3. Such sets: 3.
  4. & is AND, ≥1 is OR, =1 is exclusive OR, 1 is NOT, a circle at the output means NOT. For how many sets of values of A, B, C is the output Y equal to 1?

    Answer

    3

    1. Y = (A ∧ ¬(((C ∧ ¬A) ∨ (¬C ∧ A)) ∨ (B ∧ A))) ∨ (¬A ∧ (((C ∧ ¬A) ∨ (¬C ∧ A)) ∨ (B ∧ A)))
    2. The expression is true for: A = 0, B = 0, C = 1, A = 0, B = 1, C = 1, A = 1, B = 0, C = 1.
    3. Such sets: 3.
  5. & is AND, ≥1 is OR, =1 is exclusive OR, 1 is NOT, a circle at the output means NOT. For which set of values is the output Y equal to 1?

    Answer

    A = 0, B = 1, C = 0

    1. Y = ((((((B ∨ A) ∧ ¬C) ∨ (¬(B ∨ A) ∧ C)) ∧ ¬C) ∨ (¬(((B ∨ A) ∧ ¬C) ∨ (¬(B ∨ A) ∧ C)) ∧ C)) ∧ ¬A) ∨ (¬(((((B ∨ A) ∧ ¬C) ∨ (¬(B ∨ A) ∧ C)) ∧ ¬C) ∨ (¬(((B ∨ A) ∧ ¬C) ∨ (¬(B ∨ A) ∧ C)) ∧ C)) ∧ A)
    2. Check A = 0, B = 1, C = 0:
    3. Y = 1
  6. & is AND, ≥1 is OR, =1 is exclusive OR, 1 is NOT, a circle at the output means NOT. Which formula describes the circuit (∧ and, ∨ or, ¬ not)?

    Answer

    ¬((C ∧ B) ∧ ¬(A ∧ ¬C))

    1. Go from the inputs to the output and write each gate as a formula:
    2. Y = ¬((C ∧ B) ∧ ¬(A ∧ ¬C))

Practise “Logic circuits” online

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

Start FoxSumKids

More topics: Grade 12

← All topics