No student devices needed. Know more
27 questions
How will 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?
Radius of the circle
Center of the circle
Diameter of the circle
Width of the circle
When Tracy is facing right, from what location does she start drawing the circle?
Top of the circle
Bottom of the circle
Left of the circle
Middle of the circle
Where does Tracy always start in the grid world?
(0, 0) coordinate in the bottom left hand corner of the canvas
(-200, -200) coordinate in the bottom left hand corner of the canvas
(0, 0) coordinate in the middle of the canvas
(-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
How far does Tracy need to move from the starting position to reach the right side of the canvas?
50 pixels
100 pixesl
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)
If Tracy started facing right, which direction would she be facing after we ran the following code:
left(90)
left(90)
right(90)
up
down
right
left
Which of the following is NOT a reason for loops are useful when writing code?
Loops help use 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.
for i in range(3):
circle(25)
forward
If I wanted to alter this loop to draw 10 circles, how many lines would my code be?
1 line
3 lines
10 lines
30 lines
If Tracy starts on 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
To show you that these words can be clicked
To tell Python to skip these words when running the code
Comments are:
Written for humans to read and understand
Only needed when a program is over 50 lines
Commands performed by the computer
Always blue when Python recognizes them
What symbol is used at the beginning of an in-line comment?
"
!
#
:
What punctuation is needed to begin a multi-line comment?
#
' ' '
" " "
*
Which code makes Tracy move forward 10, then turn left and move forward 20?
distance = 10
forward(distance)
left(90)
distance = distance * 2
forward(distance)
distance = 10
forward(distance)
left(90)
forward(distance)
distance = 10
distance = distance * 2
forward(distance)
left(90)
forward(distance)
distance = 10
forward(distance)
left(90)
forward(distance)
distance = distance * 2
When the following for loop is complete, how many spaces will Tracy have moved?
for i in range(5):
forward(10)
60
50
10
5
Which code would produce this output?
What is the correct way to ask a user for a color and store the answer as a variable?
color = input(“Give a color: “)
user_color = “Give a color: ”
input(“Give a color: “)
user_color = input(“Give a color: “)
What is the best example of how to use a function to draw a square with sides that are 50 pixels long?
Explore all questions with a free account