NEW
Font size
WorksheetsVariables Unit 3 Scratch Practice
Total questions: 12
Worksheet time: 6mins
What does a variable do?
Triggers a script to run
Holds on to a piece of information until the program needs to use it
Deletes code
Makes the script run faster
What is a variable?
Some value (container) that stores information
Joins 2 code blocks together
It is data that is either true or false
A block that code to run
Which of these would be a reason to declare a variable in your script or program?
If you want something to run when the flag is clicked
If you wanted to keep score
If you wanted your hero character to move
If you needed your script to stop sooner
What should you name your variable when you use it?
Whatever you are feeling like
Something silly
Something that tells the user / programmer what it is for
Leave it blank
How do you make your variable change amount?
You can't
You would use a change "variable name" block
You just type the new number in
You add more variables to each other
Can I use variables to make it appear that my objects are gaining or losing speed?
Yes
No
Sometimes
Huh?
How to I make it so I can see my variable value on my stage?
You can't
You click the box next to it in the block library
You type it on the sprite
You drag the code block on the stage
How can I make it so I can't see the variable value on the stage?
You can't, it is always there
You unclick the box next to it in the block library
You drag it off the stage
You put it under your sprite
Are the values that you learned about in unit 2 actually variables that Scratch has premade for you?
Yes
No
Maybe
Huh?
What is a global variable?
A variable that can be used by any sprite at any time
A variable that can only be used by one sprite
A variable that is usable anywhere in the world
A variable that has been created by another programmer
What is a local variable?
A variable that can be used by any sprite at any time
A variable that can only be used by one sprite
A variable that is usable anywhere in the world
A variable that has been created by another programmer
Do you need to include a variable in your final project?
Yes
No
Maybe
Huh?
