Introduction to Variables

Language: English
Subject: Technology > Programming
School grade: United Kingdom United Kingdom

Introduction to Variables

What is a variable in Scratch?

A type of bug in the program.

A place for storing information

A mathematical operation

A colorful sprite.

Which of the following is the correct way to label a variable?

number of lives

number_of_lives

What colour are the blocks that relate to variables in Scratch?

Orange

Blue

Purple

How do you create a variable in Scratch?

Variables are created automatically in Scratch.

Go to the "Variables" category and click "Make a Variable."

Right-click on the sprite and select "Create Variable."

What is the purpose of the "Set Variable" block in Scratch?

To delete a variable.

To change the value of a variable to a specific amount.

To create a new variable.

In a game, will the score be a variable?

True

False

In a game, will the name of the game will be a variable?

True

False

You can use either numbers or words as variable values?

True

False

You can have more than one value in a variable at a time?

True

False

How would you increase a variable named "Lives" by 1 in Scratch?

Change Lives by 1

Set Lives to Lives to 1