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

Python Art Assessment

star
star
star
star
star
Last updated almost 4 years ago
11 Nsɛmmisa
Hyɛ no nsow a efi ɔkyerɛwfo no hɔ:

Entry Level Python coding quiz covering Python Turtle commands. The coloring is specific to use of TYNKER free Python IDE enviornment for coding.

You will take a short quiz over the commands you have learned for Python. For this quiz your TURTLE will be named bob all lower case. Your answers must be case sensitive and enetered correctly to count. Feel free to use your notes and previous programs WHICH HAS ALL THE ANSWERS.

Ɛhia
2
Ɛhia
2
Ɛhia
2
Ɛhia
2
Ɛhia
2
Ɛhia
2
Ɛhia
2
Ɛhia
2
Ɛhia
5
Ɛhia
2
Ɛhia
2
Asemmisa {{asɛmmisaAhyɛnsode}}
1.

What is the first line of code you MUST have to start any Turtle program? (leave out the Comment)

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

To add a comment to a line of code you must start with this character to GREY out the comment

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

The second line of code is where you create a variable name for your turtle. Write the code to create a variable NAMED bob for your Turtle.(you must use my name provided for this quiz)

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

Write a line of code to make a turtle named bob move forward 20 pixels.

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

write a line of code to make a turtle named bob turn right 58 degrees

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

Write the line of code to RESET the turtle named bob and put the turtle back to start with a clear screen

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

Write the line of code to lift the pen of your turtle named bob so that he does not write

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

What shape will the following code make?

from turtle import Turtle

bob = Turtle()

for count in range(8):

bob.forward(20)

bob.right(45)

1) from turtle import Turtle #selects Turtle library for coding

2) bob = Turtle( #named turtle object

3) bob.color('oange')

4) bob.forward(200) #forward number of pixels

5) boB.right(90) # turns angle degrees

6) bob.forward(200)

7) bob.right(90)

8) bob.forward(200)

9) bob.right(90)

10) bob.forward(200)

11) bob.penup()

12) bob.forward(30)

13) bob.pedown

14) bob.coloor('grean')

15) for count in range(3):

16) Bob.forward(45)

17) bob.let(120)

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

Which lines in the above code have errors in them? (HINT THERE ARE 5)

Asemmisa {{asɛmmisaAhyɛnsode}}
10.
Mmuae Afoforo a Wobɛpaw:
CIRCLE
RECTANGLE
TRIANGLE
SQUARE
Asemmisa {{asɛmmisaAhyɛnsode}}
11.

Correct Line 14 in the above code so that a Turtle named bob changes to green color