# Fly cat, Fly!

In this lesson, we will introduce condition-controlled loops. We will predict, run, investigate, and modify code for a Scratch the cat flying game.

#### Unit quizzes are being retired in August 2023

Why we're removing unit quizzes from the website >
Quiz:

# Intro quiz - Recap from previous lesson

Before we start this lesson, let’s see what you can remember from this topic. Here’s a quick quiz!

Q1.Which of these statements best describes decomposition

1/4

Q2.Which of these sets of instructions is not a subroutine? (Image source: Scratchblocks)

2/4

Q3.Where do you need to click in order to create your own subroutine in Scratch?

3/4

Q4.Once you have created a subroutine, what block do you need to use to execute the subroutine?

4/4

#### Unit quizzes are being retired in August 2023

Why we're removing unit quizzes from the website >
Quiz:

# Intro quiz - Recap from previous lesson

Before we start this lesson, let’s see what you can remember from this topic. Here’s a quick quiz!

Q1.Which of these statements best describes decomposition

1/4

Q2.Which of these sets of instructions is not a subroutine? (Image source: Scratchblocks)

2/4

Q3.Where do you need to click in order to create your own subroutine in Scratch?

3/4

Q4.Once you have created a subroutine, what block do you need to use to execute the subroutine?

4/4

# Video

Click on the play button to start the video. If your teacher asks you to pause the video and look at the worksheet you should:

• Click "Close Video"
• Click "Next" to view the activity

Your video will re-appear on the next page, and will stay paused in the right place.

# Worksheet

These slides will take you through some tasks for the lesson. If you need to re-play the video, click the ‘Resume Video’ icon. If you are asked to add answers to the slides, first download or print out the worksheet. Once you have finished all the tasks, click ‘Next’ below.

#### Unit quizzes are being retired in August 2023

Why we're removing unit quizzes from the website >
Quiz:

# Fly cat, fly!

Don’t worry if you get a question wrong! Forgetting is an important step in learning. We will recap next lesson.

Q1.A learner has created the following piece of code to check if a password is correct or not. They want to improve it so that it will only give a maximum of three attempts before locking them out of the game for 60 seconds. What programming construct should they use for this? (Source: Scratchblocks)

1/3

Q2.A learner has created the following block of code, when will the loop terminate? (Source: Scratchblocks)

2/3

Q3.What will be the output of this program when it is executed? What will the sprite say? - (Source: Scratchblocks)

3/3

#### Unit quizzes are being retired in August 2023

Why we're removing unit quizzes from the website >
Quiz:

# Fly cat, fly!

Don’t worry if you get a question wrong! Forgetting is an important step in learning. We will recap next lesson.

Q1.A learner has created the following piece of code to check if a password is correct or not. They want to improve it so that it will only give a maximum of three attempts before locking them out of the game for 60 seconds. What programming construct should they use for this? (Source: Scratchblocks)

1/3

Q2.A learner has created the following block of code, when will the loop terminate? (Source: Scratchblocks)

2/3

Q3.What will be the output of this program when it is executed? What will the sprite say? - (Source: Scratchblocks)

3/3

# Lesson summary: Fly cat, Fly!

## Time to move!

Did you know that exercise helps your concentration and ability to learn?

For 5 mins...

Move around:
Jog

On the spot:
Dance