NEW
Font size
Worksheetsg5 exam
Total questions: 6
Worksheet time: 6mins
Loop
Loops that have a predetermined beginning, end, and increment (step interval).
The action of doing something over and over again.
A description of the behavior of a command, function, library, API, etc.
To repeat in order to achieve, or get closer to, a desired goal.
The following code is drawing shapes when program runs. As you learned in the class, program code is executing in a sequential manner. In the code above how many of the steps will be executed when the program runs?
11
12
14
13
The following code is drawing shapes when the program runs. When the program runs, what shapes and how many of the shape will be drawn?
One square
Triangle
Two square
Two triangle
What completes the following shape?
Move forward by 100px, turn right by 120px, move forward by 100px
Turn right by 120px, move forward by 100px, Move forward by 100px,
Turn right by 120px, turn right by 120px, move forward by 100px
Move forward by 100px, move forward by 100px, turn right by 120px, move forward by 100px
The Pacman is trying to catch the vulnerable ghost. Which one is the correct direction in the blank.
RIGHT
LEFT
UP
DOWN
The artist is supposed to draw a triangle by following gray lines. In the workspace as shown below, you can see that the first line of code will be drawing the bottom line. Next, what degree should the artist turn left?
11
12
120
13
