Python Art Assessment
star
star
star
star
star
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.
Required
2
What is the first line of code you MUST have to start any Turtle program? (leave out the Comment)
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
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)
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.
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
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
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
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 Turtlebob = Turtle()for count in range(8): bob.forward(20) bob.right(45)
What shape will the following code make?
from turtle import Turtle
bob = Turtle()
for count in range(8):
bob.forward(20)
bob.right(45)
Required
5
Which lines in the above code have errors in them? (HINT THERE ARE 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
Correct Line 14 in the above code so that a Turtle named bob changes to green color