WorksheetsUnit 3 AppLab
Total questions: 9
Worksheet time: 14mins
What is the name of this function?
function
drawSeagrass
moveForward
drawStarfish
What are the names of the parameters of this function?
c, d, e, f
moveForward()
r, g, b
a, b, c
What does the parameter 'c' control?
penWidth
how far to move
blue color
how far to turn
What does the parameter 'e' control?
green color
how far to move
red color
how far to turn
Which line correctly calls this function?
drawStarFish(35, 22);
drawStarfish();
drawStarfish(35, 100, 25, 45);
drawStarfish(c, d, e, f);
To condense the code with a loop by putting one moveForward(c) and one turnRight(144) statement in the loop, which 'for' loop should be used?
for(int i=1; i<=10; i++)
for(int i=1; i<=3; i++)
for(int i=1; i<=144; i++)
for(int i=1; i<=5; i++)
When calling the penRGB function like this: penRGB(x,y,z);
What are valid values for x, y, and z
0-10
0-100
0-255
0-500
What are the coordinates of the red dot (upper left corner)?
(320,450)
(0,0)
(160, 240)
(1,1)
What does the parameter 'c' control?
penWidth
how far to move
color
how far to turn
