wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Year 5 ICT Lent Assessment

Total questions: 26

Worksheet time: 46mins

Name
Class
Date
1.

What is a variable in Scratch?

a)

A fixed number in a game

b)

A storage container that holds a changing value

c)

A block that moves a sprite

d)

A type of loop

2.

What kind of data can variables store in Scratch?

a)

Only numbers

b)

Only text

c)

Both numbers and text

d)

Only boolean values

3.

What is the difference between global and local variables?

a)

Global variables can only be accessed by one sprite, while local variables can be accessed by all

b)

Local variables are accessible by all sprites, while global variables are restricted to one sprite

c)

Global variables can be accessed by all sprites, while local variables belong to a specific sprite

d)

There is no difference between them

4.

Which block is used to set a variable to a specific value?

a)

Change [variable] by [value]

b)

Set [variable] to [value]

c)

Show variable [variable]

d)

Ask [variable] and wait

5.

How do you create a variable in Scratch?

a)

By clicking 'Make a Variable' in the Variables category

b)

By writing a variable in the Scripts section

c)

By clicking 'Make a Block'

d)

By typing a variable name in the sprite properties

6.

Which of the following is an example of using a variable in Scratch?

a)

Moving a sprite forward

b)

Keeping track of a score in a game

c)

Changing a sprite’s costume

d)

Playing a sound

7.

If you want to increase a variable’s value by 1, which block should you use?

a)

Set [variable] to [1]

b)

Change [variable] by [1]

c)

Ask [variable] and wait

d)

Show variable [variable]

8.

What will happen if a variable storing a countdown timer reaches zero?

a)

The game will reset automatically

b)

Nothing will happen unless a script is created to check for zero

c)

The variable will automatically reset to its original value

d)

Scratch will stop the game automatically

9.

How can you use a variable to track a player’s health in a game?

a)

Set a variable to 100 at the start and decrease it when the player is hit

b)

Create a new sprite for health points

c)

Use a loop to constantly increase the health

d)

Use a 'forever' block to reset health every second

10.

What happens if you hide a variable using the 'Hide variable' block?

a)

The variable’s value is deleted

b)

The variable is removed from the project

c)

The variable is still active but no longer visible on the stage

d)

The variable stops working entirely

11.

A local variable in Scratch can be accessed by all sprites.

a)

True.

b)

False.

12.

The 'Set [variable] to [value]' block is used to change a variable's value.

a)

True.

b)

False.

13.

You can store a player's name in a variable and use it later in the game.

a)

True.

b)

False

14.

Scratch variables can only store numbers, not text.

a)

True.

b)

False.

15.

If a variable is hidden, it no longer works in the project.

a)

True.

b)

False.

16.

A variable is a (a)   that stores a value and can change during a program's execution.

17.

To create a variable in Scratch, click on the (a)   category in the block palette.

18.

The (a)   block is used to increase or decrease the value of a variable.

19.

A (a)   variable can be accessed and modified by all sprites in a project.

20.

In a game, a countdown timer is an example of a variable that keeps track of (a)   .

21.

What does the following code do?

a)

Resets the score to 5 at the start of the game

b)

Increases the score by 5 without setting an initial value

c)

Sets the score to 0 first, then increases it by 5.

d)

Decreases the score by 5.

22.

What happens when this script runs?

a)

The lives variable stays at 3

b)

The lives variable decreases from 3 to 0

c)

The lives variable increases by 3

d)

The lives variable is removed

23.

What is the purpose of this code?

a)

It stores the user’s name and greets them.

b)

It asks a question but does not use the answer.

c)

It always says "Hello!" without using variables.

d)

It sets the variable but does not display it.

24.

What happens when this script is run?

a)

The timer decreases from 10 to 0 ( in seconds), then says "Time’s up!" .

b)

The timer increases from 0 to 10.

c)

The timer never stops decreasing.

d)

The script does nothing.

25.

What does this script do?

a)

The score increases by 1 when touching the banana.

b)

The score remains at 0.

c)

The sprite moves to the banana.

d)

The game restarts every time.

26.

What happens when this code runs?

a)

Health decreases from 100 to 0 over time.

b)

Health remains at 100.

c)

Health increases from 0 to 100 over time.

d)

The script never stops.