wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Computer Discoveries I - Games & Animations Test Review

Total questions: 25

Worksheet time: 15mins

Name
Class
Date
1.

Which command creates a rectangle on the screen?

a)

ellipse()

b)

rect()

c)

circle()

d)

triangle()

2.

What parameters are needed to create a rectangle?

a)

X, Y

b)

X, Y, Radius

c)

X, Y, Width, Height

d)

Width, Height

3.

Which command changes the color inside a shape?

a)

fill()

b)

background()

c)

fill()

d)

stroke()

4.

What does the ellipse() command create?

a)

rectangle

b)

square

c)

line

d)

circle or oval

5.

Which of the following commands will change the background color?

a)

rect()

b)

fill()

c)

draw()

d)

background()

6.

What is the correct syntax for drawing a rectangle at (100, 100) with a width of 50 and a height of 75?

a)

rect(100, 100, 50, 75);

b)

rect(50, 75, 100, 100);

c)

shape(100, 100, 50, 75);

d)

rectangle(100, 100, 50, 75);

7.

If you wanted to move a shape to the right on the screen, which parameter would you change?

a)

Width

b)

Y

c)

Height

d)

X

8.

The command (a)   () is used to draw a circle or oval.

9.

The function (a)   () sets the color for the background of your drawing.

10.

In the command rect(200, 150, 50, 50), the number 200 represents the (a)   position.

11.

To change the height of a rectangle, you would adjust the (first, second, third, or fourth) (a)   parameter.

12.

The command ellipse(50, 50, 100, 100) will draw a circle.

a)

True

b)

False

13.

The command fill(255, 0, 0) will set the color of shapes to blue.

a)

True

b)

False

14.

The X value in a shape command controls the vertical position on the screen.

a)

True

b)

False

15.

A sprite must be drawn using the drawSprite() command after it is created.

a)

True

b)

False

16.

Which parameters affect the size of an ellipse?

a)

X

b)

Y

c)

Width

d)

Height

17.

Which parameters define the position of a rectangle?

a)

X

b)

Y

c)

Width

d)

Height

18.

What is a parameter in programming?

a)

A piece of code

b)

Additional input for a block

c)

A graphic element

d)

A name for a value

19.

What is a bug in programming?

a)

An error in the program

b)

A comment in the code

c)

A new feature in a game

d)

A type of variable

20.

What does debugging refer to?

a)

Writing a new algorithm

b)
  • Adding a new variable

c)

Finding and fixing issues

d)
  • Creating a sprite

21.

What is a variable?

a)

A moving sprite

b)

A label for storing information

c)

A special type of block

d)

A command to draw a shape

22.

What is a program?

a)

A group of sprites

b)

A machine's action

c)
  • An algorithm that runs on a machine

d)
  • A collection of bugs

23.

What does a sprite represent in a program?

a)

A block of code

b)

character with movement and properties

c)

A type of bug

d)

A type of variable

24.

What does a parameter do in a block?

a)

Moves the sprite

b)
  • Provides customization for a block

c)
  • Adds a bug to the program

d)

Debugs the code

25.

Which of the following best defines a program?

a)

A set of instructions for a machine

b)
  • A character in a game

c)

An error in the code

d)
  • A label for storing information