
Python Unit 2
Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Jon Kern
Used 4+ times
FREE Resource
Enhance your content
11 questions
Show all answers
1.
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
Will create a slinky with 5 circles
Infinite Loop
2.
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(201)
backward(201)
forward(200)
backward(200)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following program?
for i in range(3, 7, 2):
circle(50, 360, i)
Three circles with radii of 3, 7 and 2.
Three shapes- a triangle (3 sides), a heptagon (7 sides), and a line (2 sides).
Three shapes- a triangle (3 sides), a pentagon (5 sides), and a heptagon (7 sides).
Two shapes- a triangle (3 sides) and a pentagon (5 sides).
4.
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)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What shape will be drawn with the following command?circle(50, 360, 3)
Circle
Triangle
Diamond
Square
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following commands can be used to turn Tracy to face North if she is initially facing South?
right(180)
left(90)
right(90)
left(360)
left(180)
right(90)
7.
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
5
50
60
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
10 questions
BTT 111b-Dış Donanım / Tarayıcılar
Quiz
•
9th Grade
15 questions
Uji Pemahaman Formula Excel
Quiz
•
9th Grade - University
10 questions
evaluasi Microsoft Excel
Quiz
•
10th Grade
10 questions
2.2 Antivirus
Quiz
•
9th - 10th Grade
15 questions
Ôn tập KTGK. Bài 17. Biến và lệnh gán
Quiz
•
10th Grade
10 questions
M2_01block-base
Quiz
•
10th Grade
10 questions
TĂNG TỐC
Quiz
•
10th Grade
10 questions
SC025: Control Structures Lecture Quiz
Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
