Year 6
Improving a game
Lesson details
Key learning points
- 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?
![An image in a quiz](/_next/image?url=https%3A%2F%2Foaknationalacademy-res.cloudinary.com%2Fimage%2Fupload%2Fv1707162891%2Fnhxwkgrwhj3nohvkbk5h.gif&w=750&q=75)
2
Any number
Q2.
What do all variables have?
![An image in a quiz](/_next/image?url=https%3A%2F%2Foaknationalacademy-res.cloudinary.com%2Fimage%2Fupload%2Fv1707162919%2Fndpega5frevh5wouewcz.png&w=1200&q=75)
A name only
A value only
Q3.
When running a program, which part or parts of a variable can be updated?
![An image in a quiz](/_next/image?url=https%3A%2F%2Foaknationalacademy-res.cloudinary.com%2Fimage%2Fupload%2Fv1707162945%2Fd8b3swozlxw00isomdoz.gif&w=750&q=75)
Name and value
Name only
3 Questions
Q1.
What does setting a variable do?
Decreases the variable's value
Increases the variable's value
Q2.
What would the value of the 'score' variable be after this code is run?
![An image in a quiz](/_next/image?url=https%3A%2F%2Foaknationalacademy-res.cloudinary.com%2Fimage%2Fupload%2Fv1707154347%2Fmgxgbhjxjukmhfwccaek.png&w=640&q=75)
0
2
8
Q3.
What will the sprite say at the end of this program?
![An image in a quiz](/_next/image?url=https%3A%2F%2Foaknationalacademy-res.cloudinary.com%2Fimage%2Fupload%2Fv1707154374%2Flzr14vxyii0nthfqjaik.png&w=640&q=75)
0
2
Your score is 2