wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

The Draw Loop

Total questions: 12

Worksheet time: 6mins

Name
Class
Date
1.

Prior to the lesson on the draw loop, all the instructions we have programmed were executed in what order?

a)

Sequential order (from top to bottom).

b)

Random order

c)

Order determined by the computer to be most efficient

d)

First it executes the drawing commands, then it executes the sprite commands, and lastly, it executes the text commands.

2.

What is a flipbook?

a)

A book with drawings on each page that look like movement when you flip through the pages.

b)

A gymnastic move that inspired people at code.org

c)

When you flip the order that the computer executes instructions.

d)

A way to measure frames per second (fps)

3.

How is an animation created?

a)

Draw a series of images that are similar but have changes. then show each image in turn.

b)

Use a video camera to create a movie.

c)

Program the computer to record a movie.

d)

Animations are not related to computers.

4.

What is the purpose of the draw function in Game Lab?

a)

To reset the program

b)

To generate random numbers

c)

To create real animations

d)

To draw a single rectangle

5.

What does the fill command do inside the draw loop?

a)

Reset the program

b)

Choose a new color

c)

Draw a new shape

d)

Generate random numbers

6.

What is the effect of the draw loop in the program?

a)

Repeats the commands in a loop

b)

Draws a single shape

c)

Generates random numbers

d)

Resets the program

7.

What commands are executed first?

a)

Commands outside of the draw loop

b)

Commands inside the draw loop

c)

Commands not related to the draw loop

d)

Commands from the Draw toolkit

8.

How many times will a command inside a draw loop be executed?

a)

Infinite times or until the program is terminated

b)

Each command is executed twice

c)

Repeatedly until the loop runs out of energy

d)

Commands are repeated up to 1000 times

9.

What will the following code do?

a)

Draw green circles in random places all over the screen until the screen is covered in circles

b)

Draw one green circle in the center of the screen

c)

Draw an ellipse in the bottom corner

d)

Nothing, there is an error

10.

What will the following code do?

a)

Draw one circle on a red background. The circle will move around the screen randomly

b)

Draw circles all over the screen until the screen is covered in circles

c)

Draw a circle in the bottom corner

d)

Nothing, there is an error

11.

Which of these is the correct way to use a draw loop?

a)
b)
c)
d)
12.

What does "frame rate" control?

a)

It tells the computer how frequently to update the screen.

b)

Frame rate has nothing to do with programing, it only applies to hardware.

c)

It tells the computer how many animations a sprite can have assigned.

d)

It is the cost of framing your animation.