python turtle programming Flashcards

(26 cards)

1
Q

What is the main purpose of the Python Turtle module?

A

To create graphics and drawings using a virtual turtle.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

True or False: The turtle starts facing north by default.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What command is used to move the turtle forward?

A

turtle.forward()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Fill in the blank: To turn the turtle right, you use the command turtle._____.

A

right()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What command would you use to change the turtle’s color?

A

turtle.color()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which command is used to clear the screen?

A

turtle.clear()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does the command turtle.penup() do?

A

It lifts the pen so that the turtle does not draw while moving.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the default shape of the turtle?

A

A triangle.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

True or False: You can use turtle.circle() to draw a circle.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does the command turtle.goto(x, y) do?

A

Moves the turtle to the coordinates (x, y).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the command to set the background color?

A

turtle.bgcolor()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Multiple Choice: Which command changes the turtle’s speed? A) turtle.speed() B) turtle.move() C) turtle.run()

A

A) turtle.speed()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Fill in the blank: To draw a square, you can use a loop with the command turtle._____().

A

forward()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What command would you use to make the turtle draw a line?

A

turtle.pendown()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

True or False: The turtle can only draw in one color at a time.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What does the command turtle.setheading(angle) do?

A

Sets the direction the turtle is facing to the specified angle.

17
Q

What is the purpose of the turtle.done() command?

A

To finish the turtle graphics and display the window.

18
Q

Multiple Choice: Which function is used to fill shapes? A) turtle.fill() B) turtle.begin_fill() C) turtle.shape_fill()

A

B) turtle.begin_fill()

19
Q

What command would you use to draw a rectangle?

A

You can use a combination of turtle.forward() and turtle.right() in a loop.

20
Q

Fill in the blank: To repeat a command multiple times, you can use a _____ loop.

21
Q

What does the command turtle.speed(0) do?

A

Sets the turtle to the fastest drawing speed.

22
Q

True or False: The turtle can be moved without drawing by using turtle.penup().

23
Q

What command is used to change the turtle’s shape?

A

turtle.shape()

24
Q

What does the command turtle.fillcolor() do?

A

Sets the color used for filling shapes.

25
Multiple Choice: Which command is used to create a new turtle screen? A) turtle.create() B) turtle.Screen() C) turtle.window()
B) turtle.Screen()
26
Fill in the blank: To draw a star, you can use turtle.______(length) and turn by 144 degrees.
forward()