Year 7

Year 7

# Count controlled iteration

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

## Video

Share with pupils

## Worksheet

Share with pupils

## Starter quiz

Share with pupils

### 6 Questions

Q1.
The greater than symbol in the image below is an example of a comparison operator or a logic operator?
Logic
Q2.
The greater than symbol in the image below is an example of a comparison operator or a logic operator?
Comparison
Q3.
Does the following statement evaluate as True or False? - (30 < 50) or (30 > 50)
False
Q4.
Does the following statement as True or False? - (20 = 20) and (15 < 15)
True
Q5.
Does the following statement as True or False? - not (20 = 20)
True
Q6.
Which of the conditions would evaluate to ‘true’ with the following inputs? [2 answers]
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)

## Exit quiz

Share with pupils

### 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"
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
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?
A
B