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?
Correct answer: Comparison
Logic
Q2.
The greater than symbol in the image below is an example of a comparison operator or a logic operator?
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]
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?
A
B
Correct answer: C
D
Q4.
What will be outputted (what will be said) when the following program is executed?
10, 11, 12, 13
10, 11, Lunchtime, 12
10, 11, Lunchtime, 12, 13
Correct answer: 10, 11, Lunchtime, 13

Lesson appears in

UnitComputing / Programming essentials in Scratch: part I

Computing