Tracing algorithms

In this lesson, we will be shown examples of tracing a Python program and a flow chart. Trace tables are great for walking through an algorithm and are often used to locate logic errors

This quiz includes images that don't have any alt text - please contact your teacher who should be able to help you with an audio description.

Unit quizzes are being retired in August 2023

Why we're removing unit quizzes from the website >
Quiz:

Intro quiz - Recap from previous lesson

Before we start this lesson, let’s see what you can remember from this topic. Here’s a quick quiz!

Q1.'Can be used to visually represent an algorithm or program.'

1/4

Q2.'Are used for the start and end of subroutines or programs.'

2/4

Q3.'An input or output is represented by a...'

3/4

Q4.'Are used to show the direction and flow of the program'

4/4

This quiz includes images that don't have any alt text - please contact your teacher who should be able to help you with an audio description.

Unit quizzes are being retired in August 2023

Why we're removing unit quizzes from the website >
Quiz:

Intro quiz - Recap from previous lesson

Before we start this lesson, let’s see what you can remember from this topic. Here’s a quick quiz!

Q1.'Can be used to visually represent an algorithm or program.'

1/4

Q2.'Are used for the start and end of subroutines or programs.'

2/4

Q3.'An input or output is represented by a...'

3/4

Q4.'Are used to show the direction and flow of the program'

4/4

Video

Click on the play button to start the video. If your teacher asks you to pause the video and look at the worksheet you should:

  • Click "Close Video"
  • Click "Next" to view the activity

Your video will re-appear on the next page, and will stay paused in the right place.

Worksheet

These slides will take you through some tasks for the lesson. If you need to re-play the video, click the ‘Resume Video’ icon. If you are asked to add answers to the slides, first download or print out the worksheet. Once you have finished all the tasks, click ‘Next’ below.

This quiz includes images that don't have any alt text - please contact your teacher who should be able to help you with an audio description.

Unit quizzes are being retired in August 2023

Why we're removing unit quizzes from the website >
Quiz:

Tracing Algorithms

This quiz is to assess your learning from this lesson. Read the description below and select which term it is referring to:

Q1.'Calculates the remainder of a division.'

1/4

Q2.'Calculates the whole number of times the divisor will go into the dividend '

2/4

Q3.State the result of the following calculation in Python: 14 % 4

3/4

Q4.State the result of the following calculation in Python: 28 // 5

4/4

This quiz includes images that don't have any alt text - please contact your teacher who should be able to help you with an audio description.

Unit quizzes are being retired in August 2023

Why we're removing unit quizzes from the website >
Quiz:

Tracing Algorithms

This quiz is to assess your learning from this lesson. Read the description below and select which term it is referring to:

Q1.'Calculates the remainder of a division.'

1/4

Q2.'Calculates the whole number of times the divisor will go into the dividend '

2/4

Q3.State the result of the following calculation in Python: 14 % 4

3/4

Q4.State the result of the following calculation in Python: 28 // 5

4/4

Lesson summary: Tracing algorithms

It looks like you have not completed one of the quizzes.

To share your results with your teacher please complete one of the quizzes.

Time to move!

Did you know that exercise helps your concentration and ability to learn?

For 5 mins...

Move around:
Climb stairs

On the spot:
Chair yoga

The next lesson in:
Algorithms
is:
Linear search

Browse Oak's lessons: