Log in
Sign up for FREE
arrow_back
Library

Module 2 Quiz - Turtles and For Loops

star
star
star
star
star
Last updated about 6 years ago
10 questions
Note from the author:
1
1
1
1
1
1
1
1
1
1
LCC College Now CS 161Python
Question 1
1.

Question 2
2.

Question 3
3.

Question 4
4.

Question 5
5.

Question 6
6.

Question 7
7.

Question 8
8.

Question 9
9.

Question 10
10.

1) In the following code, which line adds turtle functionality to the Python program?

import turtle
wn = turtle.Screen()
tess = turtle.Turtle()
tess = tess.shape("turtle")
In the following code, how many turtle shapes appear on the screen?
60
27
28
55
In the following code, what variable refers to the turtle?
tess
color
shape
wn
Which direction does the turtle face when it is first created?
North or Up
South or Down
East or Right
West or Left
The following code will go through the loop 3 times.
True
False
The command fred = turtle.Turtle() does which of the following?
Creates the screen for turtle action
Establishes a turtle named fred
Imports the turtle module into the Python program
Establishes turtle location
How many times will this code loop?
50
4
90
5
What shape will be drawn by the following code?
Square
Rectangle
Kite
Triangle
What will be drawn by the following code?
An error message
One square
Two squares, at a separation of 100 units, joined by a straight line
Two squares, at a separation of 100 units, without a line joining them
Which of the following programs will draw a shape like this:
import turtle
turing = turtle.Turtle()
for i in range(5):
turing.forward(110)
turing.right(144)
import turtle
turing = turtle.Turtle()
for i in range(4):
turing.forward(110)
turing.right(144)
import turtle
turing = turtle.Turtle()
for i in range(5):
turing.forward(110)
turing.right(72)
import turtle
turing = turtle.Turtle()
for i in range(4):
turing.forward(110)
turing.right(72)