wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Code.org Unit 3 Lesson 3 and 4

Total questions: 15

Worksheet time: 9mins

Name
Class
Date
1.

What is x value in the following code?

rect(250, 200, 75, 225);

a)

250

b)

200

c)

75

d)

225

2.

What is y value in the following code?

rect(250, 200, 75, 225);

a)

250

b)

200

c)

75

d)

225

3.

What is width of the rectangle in the following code?

rect(250, 200, 75, 225);

a)

250

b)

200

c)

75

d)

225

4.

What is height of the rectangle in the following code?

rect(250, 200, 75, 225);

a)

250

b)

200

c)

75

d)

225

5.
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.
6.
Animation 
a)
The common programming structure that implements "conditional statements".
b)
 a series of images that create the illusion of motion by being shown rapidly one after the other
c)
A graphic character on the screen with properties that describe its location, movement, and look.
d)
Pulling out specific differences to make one solution work for multiple problems
7.
Conditionals
a)
Any valid unit of code that resolves to a value.
b)
a single image within an animation
c)
Statements that only run under certain conditions.
d)
Any valid unit of code that resolves to a value.
8.
Bug
a)
Part of a program that does not work correctly.
b)
the rate at which frames in an animation are shown, typically measured in frames per second
c)
An algorithm that has been coded into something that can be run by a machine.
d)
A graphic character on the screen with properties that describe its location, movement, and look.
9.
Debugging
a)
Finding and fixing problems in your algorithm or program.
b)
Statements that only run under certain conditions.
c)
Any valid unit of code that resolves to a value.
d)
Part of a program that does not work correctly.
10.

The common programming structure that implements "conditional statements".

a)

IF Statement

b)

Boolean

c)

Expression

d)

Variable

11.

Finding and fixing problems in an algorithm or program.

a)

Parameter

b)

Animation

c)

FRame

d)

Debugging

12.

1. When is a good time to use a parameter?

a)

Choice A: When you need to repeat the same line of code multiple times without re-writing it each time

b)

Choice B: When you need to change the height, length, or size of something you are coding

c)

Both A and B

d)

Neither A nor B

13.

This is a type of code that allows you to repeat a certain code over and over again without having to manually put it in.

a)

Function

b)

Parameter

c)

Loop

d)

API

14.

An extra piece of information that you pass to the function to customize it for a specific need:

a)

Packets

b)

Parameter

c)

Chunk

d)

Data

15.

Placing Lines 1-9 of your algorithm in a particular order shows which of the following is important?

a)

Sequencing

b)

Selection

c)

Iteration