wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

L9 3-5 Scratch Variables

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Which of the following blocks includes an example of a variable?

a)

think "Hmm..." for 2 seconds

b)

When [Green Flag] clicked

c)

Set Points to 10

d)

play sound 'Meow' until done

2.

What will be the value of Points variable when the sprite touches green colour?

a)

3

b)

0

c)

1

d)

2

3.

When the value of Score is equal to 3 what does the sprite say?

a)

4

b)

Score

c)

"Nearly there..."

d)

"High Score"

4.

 Sam wants to increase the value of variable by 2 points. Which is the block code used?

a)

 Make my variable to 2

b)

 Change my variable to 2

c)

Set my variable to 2

5.

A variable like this one, can only hold one value at a time

a)

True

b)

False

6.

Variables can be used for: (mark all options which are correct)

a)

Keeping score

b)

Counting

c)

Controlling the flow of the program

d)

Starting a program

7.

What does this block mean? (mark all correct options)

a)

number of days = 5

b)

increase number of days by 5

c)

make the variable 'number of of days' hold a value of 5

d)

Add 5 to whatever value number of days was holding before.

8.

What does this block mean? (multiple correct answers )

a)

number of days = 12

b)

increase number of days by 12

c)

make the variable 'number of days' hold a value of 12

d)

Add 12 to whatever value number of days was holding before.

9.

If this script is given to a sprite, what will the sprite say?

a)

3

b)

9

c)

2

d)

8

10.

What will the value of lives be when the code is finished?

a)

27

b)

1

c)

2

d)

costume2