wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CKQG Scratch 05- Variables and data types

Total questions: 30

Worksheet time: 15mins

Name
Class
Date
1.

Which of the following blocks includes an example of a variable?

a)

think "Hmm..." for 2 seconds

b)

When [Green Flag] clicked

c)

Set Points to 10

d)

play sound 'Meow' until done

2.

What will be the value of Points variable when the sprite touches green colour?

a)

3

b)

0

c)

1

d)

2

3.

When the value of Score is equal to 3 what does the sprite say?

a)

4

b)

Score

c)

"Nearly there..."

d)

"High Score"

4.

 Sam wants to increase the value of variable by 2 points. Which is the block code used?

a)

 Make my variable to 2

b)

 Change my variable to 2

c)

Set my variable to 2

5.

A variable like this one, can only hold one value at a time

a)

True

b)

False

6.

If this script is given to a sprite, what will the sprite say?

a)

3

b)

9

c)

2

d)

8

7.

What will the value of lives be when the code is finished?

a)

27

b)

1

c)

2

d)

costume2

8.

Which word below describes iteration?

a)

Order

b)

Steps

c)

Loop

d)

Decision

9.

Which code block is an example of iteration in Scratch?

a)

If ..... else

b)

Change size by 10

c)

Forever

d)

Move 10 steps

10.

When playing the game, scores need to be reset periodically. Which will reset the score when you restart the game?

a)
b)
c)
d)
11.

Which code if repeated for 4 times is correct to move the sprite in a square?

a)
b)
c)
12.

This block for

a)

Change the color

b)

Change the size

13.

Identify the type of block?

a)

Loops

b)

Variables

c)

Events

14.

To get pen block, I choose

a)
b)
c)
15.

What is the name of the block we use to make the pen write?

a)

Pen Down

b)

Pen Up

c)

Erase All

16.

Event blocks are used to start a program.

a)

True

b)

False

17.

Pen blocks are used to create a sprite.

a)

True

b)

False

18.

Which code if repeated 3 times is correct to move the sprite in a triangle?

a)
b)
c)
19.

What is a variable?

a)

A place for storing information

b)

Instructions telling the program what to do

c)

Has an input and an output

d)

Forever if

20.

How many times will this block run?

a)

once

b)

twice

c)

forever

d)

none of the above

21.

What two variables are used in the scratch block? First two blocks say set score to 0 and set level to 1

a)

score and level

b)

forever and repeat

c)

block1 and block2

d)

none of the above

22.

When will the Night City backdrop appear?

a)

When the sprite turns green colour

b)

When the user clicks on the green colour

c)

When the user clicks on the sprite

d)

When the sprite touches the green colour

23.

If this script is given to a sprite, what will the sprite say?

a)

14

b)

10

c)

-10

d)

4

24.

If this script is given to a sprite, what will the sprite say?

a)

5

b)

6

c)

30

d)

11

25.

If this script is given to a sprite, what will the sprite say?

a)

3

b)

9

c)

2

d)

8

26.

If this script is given to a sprite, what will the sprite say?

a)

3

b)

9

c)

5

d)

8

27.

If this script is given to a sprite, what will the sprite say?

a)

7

b)

9

c)

5

d)

8

28.

Which one of the following is not a repetition loop

a)

1

b)

2

c)

3

d)

4

29.

What is the output of the program

a)

Hello

b)

Hi

c)

1

d)

0

30.

By Default, there are _______ blocks under Variables

a)

3

b)

4

c)

5

d)

6