NEW
Font size
WorksheetsCODEHS 9th PHYTON 1.1 - 3.3
Total questions: 20
Worksheet time: 10mins
How would I tell Tracy to move forward 100 pixels?
forward 100
move(100)
Tracy, move forward 100 pixels
forward(100)
When using the circle() command, what value do we put inside the parentheses?
The radius of the circle
The center of the circle
The diameter of the circle
The width of the circle
When Tracy is facing right, from what location does she start drawing her circle?
The top of the circle
The bottom of the circle
The left side of the circle
The middle of the circle
Where does Tracy always start in the grid world?
At the (0,0) coordinate in the bottom left hand corner of the canvas
At the (-200,-200) coordinate in the bottom left hand corner of the canvas
At the (0,0) coordinate in the middle of the canvas
At the (-200,-200) coordinate in the middle of the canvas
What are the dimensions of Tracy’s world?
200 pixels x 200 pixels
400 pixels x 200 pixels
400 pixels x 400 pixels
200 pixels x 400 pixels
Which commands would move Tracy forward 100 pixels?
A. forward(100)
B. backward(-100)
C. forward(-100)
A, B, and C
A only
B and C
A and B
How far does Tracy need to move from the starting position to reach the right side of the canvas?
50 pixels
100 pixels
200 pixels
400 pixels
If you want Tracy to move forward 100 pixels without making a line, what set of commands should you write?
penup()
forward(100)
forward(100)
penup()
penup(100)
forward(-100)
Tracy always starts facing which direction?
North
South
East
West
If Tracy is facing right, which of the following commands can be used to turn her to face up?
A. left(90)
B. turn(up)
C. right(-90)
D. setposition(90)
A only
A and C
A, B, and C
A, B, C, and D
If Tracy started facing right, which direction would she be facing after we ran the following code?
1 left(90)
2 left(90)
3 right(90)
Up
Down
Right
Left
Which of the following is NOT a reason for loops are useful when writing code?
Loops help us write the same program with fewer lines of code
Loops let us make shapes of multiple sizes
Loops make it easier to alter code once it’s written
Loops make our code easier to read
The following loop draws 3 circles on the screen. If I wanted to alter this loop to draw 10 circles, how many lines would my code be?
1 for i in range(3):
circle(25)
forward(50)
1 line
3 lines
10 linees
30 lines
If Tracy starts at the left edge of the canvas and moves forward 50 pixels, how many times will this code need to be repeated to have Tracy reach the right edge of the canvas?
4 times
8 times
10 times
50 times
Why do certain words change color in Python?
To show that they are recognized as key words
To tell you that these words cannot be used in Python code
To show you that these words can be clicked
To tell Python to skip these words when running the code
If I use the command right(180), which way will Tracy turn?
She will turn in a circle
She will turn around
She will turn to face up
She will turn to face left
The setposition() command moves Tracy to a coordinate and:
turns her to face left
does not turn her
turns her to face up
turns her to face down
If you wanted Tracy to complete her command immediately, which speed value would you use?
0
1
5
10
Which of the names below follow all naming rules?
my_function
Draw a Circle
4_circles
make_square
If I am creating a function that is going to draw 2 squares, which of the following would be the best name option?
Draw_Two_Squares
draw_squares
draw_shapes
2_squares
