When the following for loop is complete, how many spaces will Tracy have moved?
for i in range(5):
forward(10)
Tracy not Karel Review Quiz
Quiz
•
Computers
•
12th Grade
•
Medium
Kelly Hart
Used 3+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
When the following for loop is complete, how many spaces will Tracy have moved?
for i in range(5):
forward(10)
50
60
10
5
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose you write a function. How many times can you call the function in your code?
1
0
as many times as you want
only the same number of times as commands in the function
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In which of the following situations would it be best to make a function?
You want Tracy to draw a blue line, and your program requires lots of blue lines.
You need Tracy to move forward by 100.
You need Tracy to turn right and then turn left.
You need to change Tracy’s color.
4.
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.
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of the following functions would be the most useful?
def draw_triangle( ):
def draw_line( ):
def draw_circle( );
def move_100( );
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a command you can give to Tracy?
left
forward
color
turn
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the statements below is true about indentation in Python?
Indentation only matters in for loops. Then, everything must be indented one level.
Indentation never matters in Python. You can align your code any way you like, but indentation makes your code easier to read.
Indentation always matters in Python. Every statement must be aligned correctly.
Indentation only matters in functions. Then, everything must be indented one level.
20 questions
Loops
Quiz
•
1st - 12th Grade
22 questions
Coding II Midterm Prep
Quiz
•
11th - 12th Grade
23 questions
Coding 1 Midterm Prep
Quiz
•
10th - 12th Grade
20 questions
JavaScript Basics CodeHS
Quiz
•
7th - 12th Grade
20 questions
9618 Chp11 Programming Basics Quiz
Quiz
•
11th Grade - University
27 questions
Java Script BASICS
Quiz
•
9th - 12th Grade
20 questions
IST CodeHS Unit 2 Robot Coding Review
Quiz
•
9th - 12th Grade
22 questions
CodeHS AP CSP Unit 3 Review
Quiz
•
11th - 12th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression
Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University