8.1.3

Completing Algorithms

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

1Components of a Computer

2Software & Software Development

3Exchanging Data

4Data Types, Data Structures & Algorithms

5Legal, Moral, Cultural & Ethical Issues

6Elements of Computational Thinking

6.1Thinking Abstractly

6.2Thinking Ahead

6.3Thinking Procedurally

6.4Thinking Logically

6.5Thinking Concurrently

7Problem Solving & Programming

8Algorithms

Unlock your full potential with Seneca Premium

  • Unlimited access to 10,000+ open-ended exam questions

  • Mini-mock exams based on your study history

  • Unlock 800+ premium courses & e-books

Get started with Seneca Premium