NEW
Font size
WorksheetsPython Turtle Commands Quiz
Total questions: 12
Worksheet time: 6hrs 0mins
Which command moves Tracy forward 100 pixels?
move(100)
forward(100)
go(100)
What does penup() do?
Moves Tracy up on the screen
Changes the pen color
Stops Tracy from drawing while moving
The command goto(100, 50) will:
Draw a line from 100 to 50
Move Tracy to the coordinates x=100, y=50
Turn Tracy 100 degrees
What does circle(30) do?
Draws a circle with radius 30
Draws 30 circles
Which command would you use FIRST if you want Tracy to move without drawing a line?
color("white")
stop()
penup()
Which command changes Tracy's pen color to red?
color("red")
red()
changecolor("red")
What does bgcolor("blue") do?
Changes Tracy's color to blue
Draws a blue circle
Changes the background color to blue
What is a function?
A color command
A reusable block of code
A way to delete code
In Python, how do you define a function called draw_square?
def draw_square():
create draw_square():
In Python, how do you call (use) a function named draw_circle?
draw_circle()
run draw_circle
What is a variable?
A container that stores information
A type of loop
A command to move Tracy
What is wrong with this variable assignment? 25 = size forward(size)
You can't use variables with forward
The variable name should be first: `size = 25`
