
Python Quiz

Quiz
•
Computers
•
10th Grade
•
Medium
Jon Kern
Used 6+ times
FREE Resource
8 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)
50
60
10
5
2.
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.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a command you can give to Tracy?
color
turn
backward
left
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between defining and calling a function?
Defining a function means you are teaching the computer a new word. Calling a function means you are commanding the computer to complete defined actions.
There is no difference.
Calling a function means you are teaching the computer a new word. Defining a function means you are commanding the computer to complete defined actions.
Defining a function must be done each time you want to use the function. Calling a function can only happen once in your code.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What control structure would be best to use in the following code?
backward(100)
right(90)
backward(100)
right(90)
backward(100)
right(90)
backward(100)
right(90)
A function
A while loop
A for loop
An if/else statement
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What shape will be drawn with the following command?circle(50, 360, 3)
A circle
A hexagon
A triangle
A diamond
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Can a user’s input control the size of a circle? If so, how?
No, user input is a string.
Yes
circle(user_input=50)
Yes
radius = int(input("Radius: "))circle(radius)
Yes
radius = input("Radius: ")circle(radius)
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the radii of the circles drawn from the following code?
for i in range(10, 55, 10):
circle(i)
10, 20, 30, 40, 50
10, 15, 20, 25, 30, 35, 40, 45, 50, 55
10, 55, 10
10, 20, 30, 40, 50, 55
Similar Resources on Wayground
12 questions
Python Loops

Quiz
•
9th - 11th Grade
10 questions
Python Testing

Quiz
•
9th - 12th Grade
10 questions
Python L2

Quiz
•
10th - 11th Grade
10 questions
CS 50 Terminology

Quiz
•
6th - 10th Grade
10 questions
BTEC DIT C1 LAA - User Interface Vocab Test

Quiz
•
10th - 11th Grade
10 questions
Python Vocab 1 Commands Quiz

Quiz
•
10th Grade - University
10 questions
Python Basics

Quiz
•
8th - 10th Grade
10 questions
Scenarios in Spreadsheet - Class X

Quiz
•
10th Grade
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade