NEW
Font size
WorksheetsCode.org Unit 3 Lessons 1-6
Total questions: 26
Worksheet time: 20mins
Finding and fixing problems in a program is called
properties
scaling
debugging
variable
A placeholder for a piece of information that can change
program
variable
bug
command
An extra piece of information used to customize it for a specific need
variable
parameter
program
property
Which command draws a rectangle
rect(x,y,w,h)
rectangle(x,y,w,h)
rec(x,y,w,h)
square(x,y,w,h)
Which of the following commands draw a circle?
cir(x,y,w,h)
circle(x,y,w,h)
ellipse(x,y,w,h)
ellip(x,y,w,h)
Which variable is named correctly?
1side
1 side
side1
What is the x value in the following code? rect(250,200,75,225)
250
200
75
225
What is width of the rectangle in the following code?
rect(75, 20, 50, 100)
75
20
50
100
What color will the ellipses be according to the code in the picture?
yellow
orange
blue
purple
ellipse(200,300);
ellipse(200,200);
ellipse(300,50);
ellipse (50,100);
Variable
An extra piece of information that you pass to the function to customize it for a specific need.
The common programming structure that implements "conditional statements".
Attributes that describe an object's characteristics
A placeholder for a piece of information that can change.
ellipse(randomNumber(0,400), randomNumber(0,400));
rect (200, 150, 50, 350);
rect (200, 150, 50, 350);
Line 1: var xPosition
Line 2: ellipse (Xposition, 200, 50, 150);
All of the following are correct ways to label a variable except
size_of_eye_52
sizeofeye52
sizeOfEye52
size of eye 52
This code will draw a pink monster. Which of the pictures is drawn correctly?
What is the center of my grid?
(0, 0)
(400, 400)
(200, 200)
(250, 250)
What does randomNumber (0, 100); mean?
It will allow the computer to choose a random number betwen 0 and 100
it will print any random number
it will place a random number at the coordinates of (0, 100)
it will return an error message because random numbers don't exist in Javascript
What is the final value of a?
Undefined
c
5
10
What is the variable for this label?
size
name
location
value
Which of these are an assignment operator in this lesson?
=
+
-
x
