Year 5
Writing and testing algorithms
Lesson details
Key learning points
- 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](/_next/image?url=https%3A%2F%2Foaknationalacademy-res.cloudinary.com%2Fimage%2Fupload%2Fv1707205710%2Fqclxcwyu3rskpqerrdi7.png&w=384&q=75)
A
C
D
E
Q2.
Which part of the program is an example of an infinite loop?
![An image in a quiz](/_next/image?url=https%3A%2F%2Foaknationalacademy-res.cloudinary.com%2Fimage%2Fupload%2Fv1707173085%2Felgen2qxagqc79tf1vd6.png&w=384&q=75)
B
C
D
E
Q3.
Which part of the program is an example of a count countrolled loop?
![An image in a quiz](/_next/image?url=https%3A%2F%2Foaknationalacademy-res.cloudinary.com%2Fimage%2Fupload%2Fv1707205663%2Fmnqwj5vmpxp8fwfxfiqg.png&w=384&q=75)
A
B
C
E
Q4.
Which part of the program ensures a condition is repeatedly checked?
![An image in a quiz](/_next/image?url=https%3A%2F%2Foaknationalacademy-res.cloudinary.com%2Fimage%2Fupload%2Fv1707173076%2Fprsstellclsgm4rwgvjm.png&w=384&q=75)
B
C
D
E