
Python Quiz
Quiz
•
Computers
•
10th Grade
•
Practice Problem
•
Medium
Jon Kern
Used 6+ times
FREE Resource
Enhance your content in a minute
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)
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
10 questions
CHƯƠNG TRÌNH CON BT1
Quiz
•
10th - 12th Grade
10 questions
Hệ Điều Hành Của Máy Tính
Quiz
•
10th Grade - University
10 questions
python
Quiz
•
10th Grade
10 questions
KTTX Tin 9-HKII
Quiz
•
9th - 12th Grade
10 questions
TIST-SRI-01 - Conceitos Básicos (Revisão de FTI)
Quiz
•
9th - 12th Grade
12 questions
BAB 3 ALGORITMA TINGKATAN 3
Quiz
•
10th Grade
11 questions
Creative iMedia: Strengths, Weaknesses and Improvements
Quiz
•
10th Grade
11 questions
Excel
Quiz
•
1st - 10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
