Python Program
Flashcard
•
Computers
•
9th Grade
•
Practice Problem
•
Medium
Wayground Content
Used 1+ times
FREE Resource
Student preview

25 questions
Show all answers
1.
FLASHCARD QUESTION
Front
When the following for loop is complete, how many spaces will Tracy have moved?
for i in range(5):
forward(10)
Back
50
2.
FLASHCARD QUESTION
Front
How many times can you call the function in your code?
Back
as many times as you want
3.
FLASHCARD QUESTION
Front
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.
Back
You want Tracy to draw a blue line, and your program requires lots of blue lines.
4.
FLASHCARD QUESTION
Front
Which of the following pieces of code will make Tracy do the following actions three times: go forward, change colors, and then turn around? Options: for i in range(4): forward(30) color("blue") left(180), for i in range(3): forward(30) color("blue") left(180) color("red"), for i in range(3): backward(30) color("blue") left(180), forward(30) color("blue") left(180) forward(30) color("green") left(180) forward(30) color("orange") left(180)
Back
forward(30) color("blue") left(180) forward(30) color("green") left(180) forward(30) color("orange") left(180)
5.
FLASHCARD QUESTION
Front
Which function would be the most useful to make Tracy draw a mountain range? Options: def make_triangle(), def change_to_red(), def move_100(), def my_function()
Back
def make_triangle():
6.
FLASHCARD QUESTION
Front
Which of the following is NOT a command you can give to Tracy? left, backward, turn, color
Back
turn
7.
FLASHCARD QUESTION
Front
Which of the statements below is true about indentation in Python? Indentation only matters in for loops. Indentation never matters in Python. Indentation always matters in Python. Indentation only matters in functions.
Back
Indentation always matters in Python.
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
Two-Step Inequalities
Flashcard
•
9th Grade
15 questions
Inequalities
Flashcard
•
9th Grade
15 questions
Characteristics of Quadratic Functions
Flashcard
•
9th Grade
20 questions
Balancing Chemical Equations
Flashcard
•
9th Grade
15 questions
STAAR English I Review Mr. Flores CC Winn HS
Flashcard
•
9th Grade
15 questions
Balancing Chemical Equations
Flashcard
•
9th Grade
15 questions
Graphing Linear Inequalities
Flashcard
•
9th Grade
15 questions
Slope from a Table
Flashcard
•
9th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade