When the following for loop is complete, how many spaces will Tracy have moved?
for i in range(5):
forward(10)
Unit 2 - Turtle Graphics Quiz for Python Computer Programming I
Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Richard Whitehead
Used 32+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When the following for loop is complete, how many spaces will Tracy have moved?
for i in range(5):
forward(10)
10 spaces
50 spaces
5 spaces
5 spaces
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose you write a function. How many times can you call the function in your code?
As many times as you want
It depends on the function
Not more than the number of commands the function holds
Once
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In which of the following situations would it be best to make a function?
You need Tracy to move forward by 100.
You need to change Tracy’s color.
You want Tracy to draw a blue line, and your program requires lots of blue lines.
You need Tracy to turn right and then turn left.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which command will Tracy perform when given the following code?
count = 5
count = count * 2
if count < 10:
forward(count)
elif count < 20:
backward(count)
else:
circle(count)
forward(10)
circle(10)
backward(10)
circle(10)
backward(10)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code?
count = 5
while count > 0:
circle(50)
forward(100)
5 circles in a row
4 circles in a row
An infinite loop will occur
A slinky with 5 circles
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which command will Tracy perform when given the following code?
count = 200
count = count + 1
if count % 2 == 0:
forward(count)
backward(count)
forward(200)
backward(201)
backward(200)
forward(201)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following pieces of code will make Tracy do the following actions three times: go forward, change colors, and then turn around.
forward(30)
color("blue")
left(180)
forward(30)
color("green")
left(180)
forward(30)
color("orange")
left(180)
for i in range(4):
forward(30)
color("blue")
left(180)
for i in range(3):
backward(30)
color("blue")
left(180)
for i in range(3):
forward(30)
color("blue")
left(180)
color("red")
25 questions
Hour of Code Quiz
Quiz
•
8th - 9th Grade
21 questions
AP COMPUTER SCIENCE FINAL
Quiz
•
11th Grade
20 questions
Python Tracy the Turtle (codehs) through Lesson 9
Quiz
•
8th - 10th Grade
25 questions
Python Program
Quiz
•
9th Grade
20 questions
Loops
Quiz
•
1st - 12th Grade
22 questions
CodeHS AP CSP Unit 3 Review
Quiz
•
11th - 12th Grade
20 questions
Scratch Pre-Assessment
Quiz
•
5th - 9th Grade
20 questions
Cycle 4 VR Vex Final Review
Quiz
•
7th - 10th Grade
15 questions
Multiplication Facts
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
5 questions
capitalization in sentences
Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions
Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines
Quiz
•
Professional Development
12 questions
Dividing Fractions
Quiz
•
6th Grade
25 questions
Spanish preterite verbs (irregular/changed)
Quiz
•
9th - 10th Grade
10 questions
Identify Slope and y-intercept (from equation)
Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance
Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1
Quiz
•
9th - 12th Grade
26 questions
June 19th
Quiz
•
4th - 9th Grade
20 questions
Distance, Midpoint, and Slope
Quiz
•
10th Grade
20 questions
Figurative Language Review
Quiz
•
10th Grade
27 questions
STAAR English 1 Review
Quiz
•
9th Grade