wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Blockly Coding

Total questions: 9

Worksheet time: 5mins

Name
Class
Date
1.

How many lines of drawSprites should any program contain?

a)

One for every sprite

b)

one before the draw loop and one after

c)

One above the draw loop

d)

one at the bottom of the draw loop

2.

What comes first in the draw loop?

a)

background

b)

drawSprites

c)

counter pattern

d)

variables

3.

Where should variables be created? (var)

a)

last

b)

first

c)

inside the draw loop

d)

after the draw loop

4.

boy.x = boy.x + 5

Is an example of a ......

a)

random number

b)

variable

c)

counter pattern

d)

draw loop

5.

witch.y = witch.x - 3

What action would this line of code create?

a)

The sprite will move up.

b)

The sprite will move left.

c)

The sprite will move diagonally.

d)

The sprite will not move at all.

6.

What is this?

a)

Control Statement

b)

Counter Statement

c)

Create Statement

d)

Conditional Statement

7.

sprite.y == sprite.x

What does the sign mean?

a)

equals

b)

greater than

c)

less than

d)

gets the value of

8.

sprite1.x > sprite2.x

Which of the option would make the console log print true?

a)

sprite1.x is 100

sprite2.x is 100

b)

sprite1.x is 200

sprite2.x is 100

c)

sprite1.x is 100

sprite2.x is 200

d)

sprite1.x is 100

sprite2.y is 100

9.

Define: Boolean Expression

a)

A question that can be answered either:

True OR False.

b)

A question that can only be answered:

True.

c)

A question that can only be answered:

False.

d)

A question that can only be answered with a number.