
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
10 questions
All quiz

Quiz
•
3rd Grade - University
10 questions
AutoCad Practice Exam

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

Quiz
•
10th Grade - University
7 questions
Robotics Midterm Review Quiz

Quiz
•
10th Grade
10 questions
Artificial Intelligence Key Terms

Quiz
•
9th Grade - University
10 questions
Introdução ao JavaScript

Quiz
•
10th Grade
10 questions
Flowol

Quiz
•
7th - 10th Grade
10 questions
Karel Quizzes 1-5 (Command - Start)

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
10 questions
Essential Lab Safety Practices

Interactive video
•
6th - 10th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade