wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CS Disco Game Lab Lessons 15-17 Progress Check

Total questions: 10

Worksheet time: 14mins

Name
Class
Date
1.

How do the velocity blocks (velocityX and velocityY) work? Check ALL that apply.

a)

They tell sprites how fast to move in a particular direction.

b)

They have hidden counter pattern code inside the block.

c)

They limit the sprites movement in any direction.

d)

They allow you to build more complex code with ease.

2.

Which velocity block makes the sprite move up or down?

a)

sprite.velocityX

b)

sprite.velocityY

c)

sprite.rotationSpeed

d)

sprite.velocityUporDown

3.

Which velocity block makes the sprite move left or right?

a)

sprite.rotationSpeed

b)

sprite.velocityX

c)

sprite.velocityY

d)

sprite.velocityRightorLeft

4.

True or False? Changing the World.frameRate will NOT affect the rotationSpeed.

a)

True

b)

False

5.

What are two disadvantages of programming the code to detect whether sprites are touching each time versus using the "isTouching" block ?

a)

It is error prone.

b)

It reduces time and energy.

c)

It reduces the risk of errors.

d)

It would take up more time and energy.

6.

isTouching returns a Boolean, so it can be used inside a

____________ to cause something to happen only when the two sprites touch.

a)

variable

b)

conditional

c)

animation

7.

To speed up a sprite that has a positive velocity, you need to _________ to the velocity inside the counter pattern.

a)

subtract

b)

divide

c)

add

d)

multiply

8.

To speed up a sprite with a ___________ velocity, you need to subtract from the velocity inside the counter pattern.

a)

negative

b)

positive

c)

neutral

d)

medium

9.

In which direction will the sprite move?


cart.velocityX = 25;


function draw() {

background("black");

cart.velocityX = cart.velocityX - 1;

drawSprites();

}

a)

Up

b)

Down

c)

Left

d)

Right

10.

Which sprite moves left?

a)

cart.velocityX = -1;


function draw() {

background("black");

cart.velocityX = cart.velocityX - 1;

drawSprites();

}

b)

bone.velocityY = 1;


function draw() {

background("black");

bone.velocityY = bone.velocityY + 1;

drawSprites();

}

c)

flybot.velocityY = -1;


function draw() {

background("black");

flybot.velocityY = flybot.velocityY - 1;

drawSprites();

}