Mini Minds Hub · Free printable

Trace the Flowchart: Free Printable Worksheet for Year 9

In short: Free printable Trace the Flowchart for Year 9 (ages 13 to 14). Answer questions 1 to 5, complete the trace table, then fix the faulty box.

  • ForYear 9
  • StageKey Stage 3
  • CostFree
  • FormatPrintable PDF

Trace the Flowchart asks Year 9 children (ages 13 to 14) to follow a flowchart for different inputs, record each pass in a trace table, then find and fix a faulty box. It suits children who have met flowcharts and want to check that they can follow one exactly, and page 2 gives the grown-up the answers, help ideas and a stretch task.

Before they write anything, model the first row of the trace table aloud with a finger on the flowchart. Say the value of n at the start, answer the even question, then follow the arrow to find n after. The usual slip is changing n before answering the question, so ask children to fill in the columns from left to right.

What is on the sheet

Children follow a flowchart that uses a number called n. They start with different inputs, ask whether n is even at each decision box, and say what the flowchart outputs. Then they complete a trace table with columns for the pass, n at the start, whether n is even and n after. The last task is to find the faulty Box C and fix it. There are lines for written answers.

  • Input n = 1. What does the flowchart output?
  • Input n = 2. What does the flowchart output?
  • Input n = 4. What does the flowchart output?
  • Input n = 3. What does the flowchart output?
  • Pass
  • n at start
  • Is n even?
  • n after
  • steps

Worked example: a different flowchart

A flowchart starts with total = 0. Each pass adds 6 to total, then asks: Is total more than 20? If no, go round again. If yes, output total. What does it output?

This is a different flowchart from the one on the sheet, with a different rule. It shows how a trace table grows one row at a time.

Method 1: fill in a trace table
  1. Draw four columns: Pass, total at start, total after adding 6, Is total more than 20?
  2. Pass 1: total starts at 0 and becomes 6. Is 6 more than 20? No.
  3. Pass 2: starts at 6 and becomes 12. No. Pass 3: starts at 12 and becomes 18. No.
  4. Pass 4: starts at 18 and becomes 24. Is 24 more than 20? Yes, so follow the arrow to the output box.
Method 2: say it aloud with a finger
  1. Put a finger on Start. Each time you pass the adding box, say the new total: 6, 12, 18, 24.
  2. After each total, say the question aloud and answer it before you move on.
  3. Stop when the answer is yes and read the value of total in the output box.
The flowchart outputs 24.

Building the habit of tracing

Read the whole flowchart first

Before any input, point to Start, follow each arrow and find the output box. Children who know the route find the table less confusing.

Track one value at a time

Here the value is n. Write it at the start of each pass and again after it changes. Do not keep the current value in your head.

Copy across to the next row

The value of n after one pass becomes n at the start of the next pass. Draw a small arrow between the two cells if it helps.

Check where the trace ends

A trace should reach the output box. If it does not seem to, look again at the boxes and arrows.

Why trace an algorithm by hand?

An algorithm is a set of steps that solves a problem. A flowchart draws those steps as boxes joined by arrows, so you can see the order and the decisions. A computer follows steps exactly, without guessing what the writer meant. Tracing an algorithm by hand means doing the same: following each instruction as written and recording what happens.

A trace table records the value of each variable at every step. It turns a flowchart into a page you can check line by line. This is useful when an algorithm gives a surprising result, because the table shows the exact pass where something changed. Programmers use the same habit when they test and debug code.

Skills and curriculum link

  • Following a flowchart
  • Completing a trace table
  • Decisions and loops
  • Spotting errors
  • Explaining reasoning

Ideas that help with tracing

  • AlgorithmAn algorithm is a set of steps in a fixed order. Following them exactly, in the same order, is what tracing practises.
  • VariableA variable is a named place that holds a value, and the value can change. Here the variable is n.
  • DecisionA decision box asks a question with two possible routes. The route you take depends on the value at that moment.
  • Even numbersAn even number can be shared into two equal groups with none left over. Odd numbers cannot. Children can check with counters or by looking at the last digit.

Key words

  • AlgorithmA set of steps that tells you what to do, in order.
  • FlowchartA diagram that shows an algorithm using boxes and arrows.
  • Trace tableA table that records the value of each variable at every step.
  • VariableA name for a value that can change as the algorithm runs.
  • DecisionA box that asks a question and sends you down one of two routes.
  • LoopA part of an algorithm that is repeated.

How to use it

  1. Print both pages. Page 1 is for the child. Keep page 2, which has the notes and answers.
  2. Look at the flowchart together. Ask the child to trace the route from Start to the output box with a finger.
  3. Let the child answer questions 1 to 5, then complete the trace table, writing each column from left to right.
  4. Move on to the faulty box task. Ask the child to explain what Box C does and why it causes a problem.
  5. Check against page 2. Ask, "Which row shows that?" Come back another day to try another input.

Help, stretch and game ideas

If it feels too hard

Cover Box C with a card at first. In the table, ask the child to decide odd or even before they do anything else. Then do the sum for that row. Doing one row aloud together can make the pattern clear.

To stretch confident children

Ask the child to write on the lines a second input that also shows the faulty Box C never stops, and say why. Then ask them to change Box C so the flowchart works for both inputs.

Make it a game

Work in pairs. One child picks an input and the other traces it aloud, using a finger on the flowchart. They swap and check each other's answers against the trace table. Agree on one row before moving on.

Mistakes to watch for

Watch forA child changes n before answering the question in the decision box.

Try thisFill in the columns from left to right. Write n at the start, answer the question about it, then work out n after.

Watch forThe value in n after is not copied into n at the start of the next row.

Try thisDraw a small arrow from the n after cell to the next n at the start cell. Say, "This is where we begin again."

Watch forA child writes a number from the table as the output without checking which box gives the output.

Try thisPut a finger on the output box and follow the arrows back. Ask which decision sent you there and what the value was at that moment.

Talk about it

  • What does the flowchart do to n each time it goes round?
  • How did you decide whether n was even?
  • Which column of your trace table helped you most, and why?
  • What would happen if we changed the question in the decision box?
  • How can you tell that Box C is faulty?
  • How would you explain a trace table to someone who has never seen one?

Take it off the page

Morning routine flowchart

Draw a flowchart for getting ready for school. Include at least one decision box, such as asking whether it is raining. Swap with someone and trace it.

Rule cards

Write a rule on a card, such as add a number until the total passes a limit. A partner draws the flowchart and traces it for a start value you choose.

Human flowchart

Write the boxes of a flowchart on paper and lay them on the floor. One person is the value and walks through the boxes while another records each step in a table.

Who it is for

Parents

Sit beside your child for the first row of the table, then let them lead. You do not need to know computing. Ask them to say each step aloud and point to the box they are following.

Teachers

Use it as a starter or homework once tracing has been introduced. It suits a plenary, an early finisher task or cover work. Page 2 has support and stretch ideas for mixed groups, and the sheet needs no preparation beyond printing.

Home educators

Print it as part of a wider computing plan. It pairs well with writing short instructions for everyday jobs. The sheet can be printed again for brothers and sisters, or for revision a few weeks later.

Where this fits

Before this sheet, children meet algorithms as sequences of instructions and learn to read simple flowcharts with a decision box. They also need to know the difference between odd and even numbers, and to be careful with small calculations.

After this, tracing supports writing and testing programs that use selection and repetition. Children who can spot a faulty box on paper are better placed to find errors in code, and to explain what a program does and why.

Keep practising

If this sheet went well, find more in our Year 9 worksheets and games guide, or try Drone Delivery Dash, Crack the Code by Counting, The Midnight Alarm Code or Homework Flowchart Planner next.

Questions parents and teachers ask

What age is Trace the Flowchart for?

It is written for Year 9 (ages 13 to 14), in Key Stage 3. It suits children who have been introduced to flowcharts and trace tables and want practice following them carefully.

What will children practise?

Children practise following decisions in a flowchart, completing a trace table and spotting and explaining errors in an algorithm. They finish by fixing the faulty box.

What if it feels too hard?

Cover Box C with a card at first. Ask the child to decide odd or even in the table, then do the sum. Work through one row aloud together before they try the next.

Do children need to know trace tables first?

It works best after tracing has been introduced. If the table is new, complete the first row together and say each column aloud. Children can then try the next row by themselves.

Where are the answers?

The answers are on page 2, which is for the grown-up. It also has notes on how to use the sheet, help for children who find it hard and a stretch idea.

Can I use it in class?

Yes. It works as a starter, plenary, early finisher task, homework or table activity. It needs no preparation beyond printing, and page 2 has support and stretch ideas for mixed groups.

How long does it take?

It depends on the child and how much talking you do. Children can work at their own pace. Questions 1 to 5, the table and the faulty box task can be done together in one session or spread over two.

Preview the full PDF

Made by Jaques of London, making games for families since 1795. A printable supports classroom learning and does not replace a teacher.