WorksheetsCSD: Unit 3 Lessons 3-6
Total questions: 24
Worksheet time: 19mins
Name
Class
Date
1.
Part of a program that does not work correctly.
a)
Bug
b)
Debugging
c)
Program
d)
Parameter
2.
Finding and fixing problems in an algorithm or program.
a)
Bug
b)
Debugging
c)
Program
d)
Parameter
3.
An extra piece of information passed to a function to customize it for a specific need.
a)
Bug
b)
Debugging
c)
Program
d)
Parameter
4.
What is at the end of a line of code?
a)
#
b)
;
c)
)
d)
>
5.
What command colors a shape?
a)
color(43, 255, 0);
b)
bucket(43, 255, 0);
c)
fill(43, 255, 0);
6.
What command draws a perfect circle?
a)
ellipse(80, 60, 100, 100);
b)
circle(80, 60, 80, 60);
c)
ellipse(80, 60, 100, 105);
d)
ellipse(80, 60, 105, 100);
7.
What command draws a rectangle?
a)
rec(10, 20, 100, 200)
b)
rect(10, 20, 100, 200)
c)
rect(10, 20, 100, 200);
d)
ellipse(10, 20, 40, 40)
8.
Optional parameters don't have any value until you give them a value.
a)
True
b)
False
9.
background("blue"); will fill in the entire screen (canvas area) with the color blue.
a)
True
b)
False
10.
A placeholder for a piece of information that can change.
a)
variable
b)
property
c)
sprite
d)
expression
11.
Attributes that describe an object's characteristics.
a)
variable
b)
property
c)
sprite
d)
expression
12.
A variable is a container for storing a value.
a)
True
b)
False
13.
3 = horses; is an acceptable way to assign the value 3 to the variable named horses
a)
True
b)
False
14.
var lives = 3;
a)
assigns 3 to the variable lives
b)
assigns 3 to the variable lives
c)
declares a variable named lives and then initializes the value of lives to 3
d)
initializes the value of the variable lives to 3
15.
The rate at which frames in an animation are shown, typically measured in frames per second:
a)
Frame Rate
b)
Animation
c)
If-Statement
d)
Parameter
16.
A single image within an animation
a)
Frame
b)
Boolean
c)
Variable
d)
Sprite
17.
What is the variable for this label?
a)
size
b)
name
c)
location
d)
value
18.
What command will create a new variable?
a)
var
b)
name
c)
loc
d)
size
19.
Which of these are an assignment operator in this lesson?
a)
=
b)
+
c)
-
d)
x
20.
What is the assigned VALUE in this picture?
a)
size
b)
=
c)
100
d)
50
21.
After you initialize a variable you don't need to use the var command to assign a new value.
a)
True
b)
False
22.
Which line is in camecase?
a)
c a m e l C a s e
b)
camel-case
c)
4camelcase
d)
camelCase
23.
Does the order of code matter?
a)
Yes
b)
No
24.
Which of the following values can be returned by the code: randomNumber (0, 20)?
a)
-1
b)
15
c)
-15
d)
15.5
100 %
