wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Code.org lesson 3 and 4 quiz

Total questions: 25

Worksheet time: 31mins

Name
Class
Date
1.

Which letters tell us the coordinates on the grid?

a)

x and y

b)

y and z

c)

a and b

d)

x and z

2.

What is the coordinate of the blue rectangle?

a)

200, 200

b)

150, 200

c)

100, 100

d)

0, 0

3.

What code is correct for this rectangle?

a)

rect(200, 200);

fill("blue");

b)

fill("blue");

rect(200, 200);

c)

fill - blue

x=200, y=200

d)

rect(0, 0);

fill(red);

4.

What code is correct for this rectangle?

a)

rect(200, 200);

fill("blue");

b)

fill("blue");

rect(200, 200);

c)

fill - blue

x=200, y=200

d)

rect(0, 0);

fill(red);

5.

Select correct code to draw a circle

a)

ellipse(100, 100);

b)

elipse(100, 100);

c)

eclipse(100, 100);

d)

circle(100, 100);

6.

Code lines in code.org run

a)

Top to bottom

b)

Bottom to top

c)

Starting with rect(200, 200);

d)

Starting with top left corner

7.

Code for color of the shape should go _____ the shape code.

a)

before

b)

after

8.

What is the code to color a shape?

a)

fill("red");

b)

fill(red);

c)

fill-red;

d)

"fill"(red);

9.

Bottom right part of the coordinate grid has coordinates...

a)

x = 400, y = 400

b)

x = 50, y = 50

c)

x = 0; y = 0

d)

x = 100; y = 450

10.

In code rect(100, 200), what does the first number (100) represent?

a)

x

b)

y

c)

height

d)

width

11.

In code rect(200, 350), what does the second number represent (350)?

a)

x

b)

y

c)

height

d)

width

12.

What are the coordinates of this rectangle?

a)

(400, 400);

b)

(0, 0);

c)

(5, 10);

d)

(200, 200)

13.

What is height of the rectangle in the following code?

rect(250, 200, 75, 225);

a)

250

b)

200

c)

75

d)

225

14.

What is width of the rectangle in the following code?

rect(250, 200, 75, 225);

a)

250

b)

200

c)

75

d)

225

15.

What is y value in the following code?

rect(250, 200, 75, 225);

a)

250

b)

200

c)

75

d)

225

16.

What is height of the rectangle in the following code?

rect(250, 200, 75, 225);

a)

250

b)

200

c)

75

d)

225

17.
Parameter
a)
An extra piece of information that you pass to the function to customize it for a specific need.
b)
The common programming structure that implements "conditional statements".
c)
the rate at which frames in an animation are shown, typically measured in frames per second
d)
Pulling out specific differences to make one solution work for multiple problems.
18.

Finding and fixing problems in an algorithm or program.

a)

Parameter

b)

Animation

c)

FRame

d)

Debugging

19.

The X and Y part of these blocks help us.....

a)

place any shape or sprite in a specific area on the screen.

b)

change how big or small the shape or sprite is

c)

move the shapes

d)

create a new plot

20.

The W and H part of these blocks help us.....

a)

place any shape or sprite in a specific area on the screen.

b)

change how wide or tall the shape or sprite is

c)

move the shapes

d)

create a new plot

21.

How do we use this block in code.org?

a)

We have to place this block below a shape or sprite in order to change its size.

b)

We use this to change all colors

c)

We have to put this block at the end of the code

d)

We have to place this block before a shape or sprite in order to change its color.

22.

What does this block do?

a)

Draws a rectangle onto the display positioned at x and y

b)

Draws an ellipse onto the display centered at x and y

c)

Sets the color used for the background of your game.

d)

Draws a straight line between two points.

23.

What does this block do and how do we use it?

a)

Draws a straight line between two points.

b)

Draws a rectangle onto the display positioned at x and y

c)

Draws an oval onto the display centered at x and y

d)

Draws a point.

24.

What will this block help you do in Code.org?

a)

Change

b)

Color development

c)

Change the color of the background

d)

background movement

25.

What is width of the rectangle in the following code?

rect(250, 200, 75, 225);

a)

250

b)

200

c)

75

d)

225