Lesson 6 of 6
  • Year 5

Writing and testing algorithms

Lesson 6 of 6
  • Year 5

Writing and testing algorithms

These resources will be removed by the end of the Spring Term 2026.

Start using our brand new teaching resources now. Designed by teachers and subject experts, with real classrooms in mind.

The older resources below were created for lockdown learning during the pandemic and are not designed for classroom teaching.

Lesson details

Key learning points

  1. In this lesson, we will write an algorithm for controlling our models. We will then turn that algorithm into code. Lastly, we will test and debug our program.

Licence

This content is made available by Oak National Academy Limited and its partners and licensed under Oak’s terms & conditions (Collection 1), except where otherwise stated.

Loading...

4 Questions

Q1.
Where is selection being used in this program?

An image in a quiz
A
Correct answer: B
C
D
E

Q2.
Which part of the program is an example of an infinite loop?

An image in a quiz
Correct answer: A
B
C
D
E

Q3.
Which part of the program is an example of a count countrolled loop?

An image in a quiz
A
B
C
Correct answer: D
E

Q4.
Which part of the program ensures a condition is repeatedly checked?

An image in a quiz
Correct answer: A
B
C
D
E