wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Variables Unit 3 Scratch Practice

Total questions: 12

Worksheet time: 6mins

Name
Class
Date
1.

What does a variable do?

a)

Triggers a script to run

b)

Holds on to a piece of information until the program needs to use it

c)

Deletes code

d)

Makes the script run faster

2.

What is a variable?

a)

Some value (container) that stores information

b)

Joins 2 code blocks together

c)

It is data that is either true or false

d)

A block that code to run

3.

Which of these would be a reason to declare a variable in your script or program?

a)

If you want something to run when the flag is clicked

b)

If you wanted to keep score

c)

If you wanted your hero character to move

d)

If you needed your script to stop sooner

4.

What should you name your variable when you use it?

a)

Whatever you are feeling like

b)

Something silly

c)

Something that tells the user / programmer what it is for

d)

Leave it blank

5.

How do you make your variable change amount?

a)

You can't

b)

You would use a change "variable name" block

c)

You just type the new number in

d)

You add more variables to each other

6.

Can I use variables to make it appear that my objects are gaining or losing speed?

a)

Yes

b)

No

c)

Sometimes

d)

Huh?

7.

How to I make it so I can see my variable value on my stage?

a)

You can't

b)

You click the box next to it in the block library

c)

You type it on the sprite

d)

You drag the code block on the stage

8.

How can I make it so I can't see the variable value on the stage?

a)

You can't, it is always there

b)

You unclick the box next to it in the block library

c)

You drag it off the stage

d)

You put it under your sprite

9.

Are the values that you learned about in unit 2 actually variables that Scratch has premade for you?

a)

Yes

b)

No

c)

Maybe

d)

Huh?

10.

What is a global variable?

a)

A variable that can be used by any sprite at any time

b)

A variable that can only be used by one sprite

c)

A variable that is usable anywhere in the world

d)

A variable that has been created by another programmer

11.

What is a local variable?

a)

A variable that can be used by any sprite at any time

b)

A variable that can only be used by one sprite

c)

A variable that is usable anywhere in the world

d)

A variable that has been created by another programmer

12.

Do you need to include a variable in your final project?

a)

Yes

b)

No

c)

Maybe

d)

Huh?