Python Art Assessment

Last updated over 3 years ago
11 questions
Note from the author:
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.
Required
2

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

Required
2

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

Required
2

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)

Required
2

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

Required
2

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

Required
2

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

Required
2

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

Required
2

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)
Required
5

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

Required
2
The second shape made by the code above would be a_____________
Other Answer Choices:
CIRCLE
RECTANGLE
TRIANGLE
SQUARE
Required
2

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