Lesson details

Key learning points

  1. In this lesson, we will experiment with changing variables by different amounts and in different places. We will also learn how to display a variable in a different way.

Licence

This content is made available by Oak National Academy Limited and its partners and licensed under Oak’s terms & conditions (Collection 1), except where otherwise stated.

Loading...

3 Questions

Q1.
How many values can a variable hold at one time?
Correct answer: 1
2
Any number
Q2.
What do all variables have?
Correct answer: A name and a value
A name only
A value only
Q3.
When running a program, which part or parts of a variable can be updated?
Name and value
Name only
Correct answer: Value only

3 Questions

Q1.
What does setting a variable do?
Decreases the variable's value
Increases the variable's value
Correct answer: Makes the variable a specific value
Q2.
What would the value of the 'score' variable be after this code is run?
0
Correct answer: 10
2
8
Q3.
What will the sprite say at the end of this program?
0
2
Correct answer: Your score is 0
Your score is 2

Lesson appears in

UnitComputing / Variables in Games

Computing