WorksheetsJavascript Assessment
Total questions: 15
Worksheet time: 3hrs 30mins
What is a bug in a program?
a computer virus
a mistake or problem in the code
a creepy, crawly insect that makes Mrs. Altman scream.
a hacker
Look at the image. What is the line of code for the rectangle?
rect (400, 400);
ellipse (200, 400);
rect (0, 0);
ellipse (0, 0);
What is it called when we go in and fix a problem in our program?
bugging
debugging
hacking
shutting down
Look at the image. What line of code made the entire screen appear blue?
background ("blue");
fill ("blue");
rect ("blue");
color ("blue");
What line of code creates a yellow outline around the circle?
fill("yellow");
noStroke("yellow");
background ("yellow");
stroke("yellow");
Find the bug! Why is the rectangle not red?
The parameters in line 1 are incorrect.
The fill code should come first.
There is no background code.
There is no stroke code.
What are parameters in code?
the outside measurement of a room
the name of a shape
the specific details in a line of code
the line numbers in a program
Why do programmers use the //Comment line of code?
to tell the computer what to say
to keep their program organized
to tell the user to input information
to add text to their program
DEBUG! Why is the cloud not showing up?
They are the wrong color.
What cloud?
The cloud is off of the grid.
The background code is covering it up because it in the wrong order.
Look at the line of code. What does the number 173 represent?
the x coordinate of the circle
the width of the circle
the y coordinate of the circle
the height of the circle
What do we call a piece of code that STORES information to be used later on in the program?
variable
random number
ellipse
storage
What does the randomNumber code do to our program?
switches our program order
adds variables
makes it react differently each time
writes the code for us
What is missing from the line of code?
rect (100, 234, 24, 65)
a period
the semi-colon ;
nothing, it looks great!
the rest of the word rectangle
What does the = sign mean in the line of code?
var playerScore = 0;
is equal to
is not equal to
gets the value or gets
What is NOT a rule when creating a variable label?
It cannot start with a number.
It cannot have spaces.
It has to be called out exactly as it was named.
It must contain the letter e.
