1.2.7

Complete the Algorithm

Test yourself

Completing Algorithms

Some exam questions will ask you to state the output of an algorithm.

Illustrative background for Interpreting the algorithmIllustrative background for Interpreting the algorithm ?? "content

Interpreting the algorithm

  • The first step for this type of question is to try to identify what the algorithm does.
  • If you can interpret the algorithm, then it will be much easier to follow it.
Illustrative background for Trace tablesIllustrative background for Trace tables ?? "content

Trace tables

  • You can draw a table with a column for each variable in the algorithm.
  • Use this table to keep track of the value of each variable, and carefully follow through the code until the end.
  • Finally, the trace table should include your answer.

Jump to other topics

1Computational Thinking & Algorithms

2Programming

3Hardware & Software

4Data

5The Internet

6Online Safety & Security

Go student ad image

Unlock your full potential with GoStudent tutoring

  • Affordable 1:1 tutoring from the comfort of your home

  • Tutors are matched to your specific learning needs

  • 30+ school subjects covered

Book a free trial lesson