RM - DL.Oxford Computing 2nd Ed Grade 5 Chapter 4 Worksheet

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

Chapter 4 Worksheet

4.1 Set the stage


Theory
1 Fill in the blanks using the words from the list:
Stage Number Coordinates negative
value
X Y 0 positive
coordinate coordinate

A ________ is the area where the sprite moves. Every position on the stage has
a ____________________. The number values are called ______________.
Each ________________ point has two numbers:
• The position from left to right is the __________________________.
• The position from bottom to top is the __________________________.
The coordinate can be _____________ or _____________ numbers. The center
of the stage has x vale _____ and y value _____.
2 Choose the sprite and backdrop:

3 Set the starting values:


Click on the sprite to change its _______________ and ____________.

1
Practical
1 Prepare a stage with a sprite and a backdrop. Change the size and position
of the sprite. Save your file. Choose the sprites and backdrop you want.
Repeat this exercise 5 times.

4.2 Control the sprite


Theory
1 Fill in the blanks using the words from the list:
Stage Starting start negative
event
X Y Green positive
coordinate coordinate flag
button

Every program needs a ________________. The starting event is how the user
makes the program ______________. ____________________ is an example
of a block used to start a program.

2
2 Write the functions of the blocks and where you find them.
a. Go to

b. Move

c. Repeat

3 What does costumes mean?

4 How do you make a sprite pause for a fraction of a


second after each costume change?

3
Practical
1 Write a program to move the sprite as shown in this lesson. Run the
program to make sure it works. Save the file. Choose the sprites and
backdrop you want. Repeat this exercise 5 times.

4.3 Add a second sprite


Theory
1 What does this block do?

2 What is the smallest possible value for the x coordinate?


3 What is the biggest possible value for the x coordinate?
Practical
1 To the previous exercise add a second sprite. Create a short program to
control the second sprite. The starting event is a green flag. The new
program only needs one more block. Use the ‘go to’ block to move the
sprite to an x and y coordinates. Set the x and y to 0 and fit the two blocks
together. Make either x random or y random.

4.4 How to win the game


Theory
1 What does this block do? What is it called and where is it found?

2 What does this block do? What is it called and where is it found?

4
Practical
1 Complete the program you’ve already started by adding ‘if…. else….’
and Sensing and then add block needed for the if…. else….’

4.5 How many flaps?


Theory
1 What is the block used to ask a question?
2 Where is the user answer to a question stored by a computer?
Practical
1 Complete the games you’ve already created by adding any necessary
blocks needed.

4.6 Chase your Dinner!


Theory
1 What are degrees?
2 Explain this program block by block. What is the output?

5
Practical
1 Make a new program like the one shown in this lesson. Run the program
to make sure it works. Save your file.
2 Start a program where one sprite is the food and the other chases the
food. Make a simple program for the food sprite so that it moves to a
random position on the screen. Start a program for the chaser, set the x
and y coordinates to any coordinates you choose. Ask the question ‘How
many degrees shall I turn?’ the chaser will turn that many degrees and
then asks ‘how many steps shall I take to get to the food?’ the chaser will
move accordingly. Make the program more realistic by changing the
costume of the chaser and adding wait time. Finally, if the chaser reacts
the food it says ‘I got my dinner’, if not it says ‘I’m hungry’.

6
7

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy