Twa kɔ nsɛm atitiriw so
Log in
Sign up for FREE
arrow_back
Laabri

Module 2 Quiz - Turtles and For Loops

star
star
star
star
star
Last updated over 6 years ago
10 Nsɛmmisa
Hyɛ no nsow a efi ɔkyerɛwfo no hɔ:

LCC College Now CS 161Python

1
1
1
1
1
1
1
1
1
1
Asemmisa {{asɛmmisaAhyɛnsode}}
1.

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

Asemmisa {{asɛmmisaAhyɛnsode}}
2.

In the following code, how many turtle shapes appear on the screen?

Asemmisa {{asɛmmisaAhyɛnsode}}
3.

In the following code, what variable refers to the turtle?

Asemmisa {{asɛmmisaAhyɛnsode}}
4.

Which direction does the turtle face when it is first created?

Asemmisa {{asɛmmisaAhyɛnsode}}
5.

The following code will go through the loop 3 times.

Asemmisa {{asɛmmisaAhyɛnsode}}
6.

The command fred = turtle.Turtle() does which of the following?

Asemmisa {{asɛmmisaAhyɛnsode}}
7.

How many times will this code loop?

Asemmisa {{asɛmmisaAhyɛnsode}}
8.

What shape will be drawn by the following code?

Asemmisa {{asɛmmisaAhyɛnsode}}
9.

What will be drawn by the following code?

Asemmisa {{asɛmmisaAhyɛnsode}}
10.

Which of the following programs will draw a shape like this: