Year 7

Count controlled iteration

Year 7

Count controlled iteration

warning

These resources will be removed by end of Summer Term 2025.

Switch to our new teaching resources now - designed by teachers and leading subject experts, and tested in classrooms.

Lesson details

Key learning points

  1. In this lesson, we will develop a Scratch version of the nursery rhyme Ten Green Bottles, using count-controlled iteration. We will be introduced to the concept of debugging and will be given a program to debug by tracing the value of the variables.

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...

6 Questions

Q1.
The greater than symbol in the image below is an example of a comparison operator or a logic operator?
An image in a quiz
Correct answer: Comparison
Logic
Q2.
The greater than symbol in the image below is an example of a comparison operator or a logic operator?
An image in a quiz
Comparison
Correct answer: Logic
Q3.
Does the following statement evaluate as True or False? - (30 < 50) or (30 > 50)
False
Correct answer: True
Q4.
Does the following statement as True or False? - (20 = 20) and (15 < 15)
Correct answer: False
True
Q5.
Does the following statement as True or False? - not (20 = 20)
Correct answer: False
True
Q6.
Which of the conditions would evaluate to ‘true’ with the following inputs? [2 answers]
An image in a quiz
Correct answer: (number 1 > 20) and (number2 < 100)
Correct answer: (number 1 > 20) or (number2 < 100)
(number 1 > 30) and (number2 < 91)
(number 1 > 30) or (number2 < 90)

4 Questions

Q1.
In our lesson we learnt about two types of iteration (loops). Which of the two is the following sentence describing: "This type of iteration will execute the commands until the condition you set is no longer being met"
Correct answer: Condition controlled
Count controlled
Q2.
Which of the following terms describes the process of finding an error in your code and taking steps to fix the problem.
Code breaking
Correct answer: Debugging
Iteration
Tracing
Q3.
Which of the following blocks of code would make the Scratch cat say “1, 2, 3” leaving a second in between each number?
An image in a quiz
A
B
Correct answer: C
D
Q4.
What will be outputted (what will be said) when the following program is executed?
An image in a quiz
10, 11, 12, 13
10, 11, Lunchtime, 12
10, 11, Lunchtime, 12, 13
Correct answer: 10, 11, Lunchtime, 13