WorksheetsShapes and Color Coding (JavaScript)
Total questions: 12
Worksheet time: 6mins
After we put a command in a program, we always end it with parenthesis and a ___________.
semicolon
period
colon
exclamation point
Look at this command:
ellipse(x, y, w, h);
The "x" parameter says how far ________ or _______the ellipse is on the canvas.
up; down
left; right
southeast; northwest
Neither
Look at these commands:
ellipse(100, 200, 30, 40);
rect(100, 225, 12, 20);
The numbers in these ellipse and rect commands are called:
sundaes
measurements
letters
parameters
What is the purpose of putting comments in your code?
To help you label what you are coding
To help you run faster
To make it harder for you to code
None of these answers
What is a comment in programming?
2 slashes with a bit of text after it to tell you what the code does
Something Instagrammers use to edit their photos
A way to cancel the code
None of these
What is an error, flaw or mistake in a computer program that causes the code not to work in the way you wanted it to?
virus
bug
insect
flu
Is it important to put your code in a particular order?
Yes
No
The fill command colors in:
Shapes
Lines
Backgrounds
Outlines of shapes
What does the stroke command do?
Colors in shapes
Only changes the colors of lines
Changes the color of lines AND the outline colors of shapes
Colors the background
What does the noStroke( ); command do?
Turns off any shape outlines
Makes all shapes have outlines
Fills in the color of shapes
None of these
What is the point of using variables in code?
To make life easier for the coder
To give the coder more work
To make the computer miscommunicate
To make your life harder
What is a variable?
A value that can change depending on information passed through the program
A creative solution for viruses
None of these
