
Python Quiz 1
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Easy
Jessica Fletcher
Used 7+ times
FREE Resource
Enhance your content in a minute
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which direction does the Turtle face when it is created?
North
South
East
West
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following code. What does the line “import turtle” do?
It creates a new turtle object that can be used for drawing.
It defines the module turtle which will allow you to create a Turtle object and draw with it.
It makes the turtle draw half of a rectangle on the screen.
Nothing, it is unnecessary.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
True or False: A Turtle object can have any name that follows the naming rules
True
False
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following code would produce the following image?
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
True or False: You can only have one active turtle at a time. If you create a second one, you will no longer be able to access or use the first.
True
False
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How does python know what statements are contained in a for loop or while loop body?
They are indented to the same degree from the loop header.
There is always exactly one line in the loop body.
The loop body ends with a semi-colon (;) which is not shown in the code above.Check MeCompare me
The loop body is handled with curly braces { }.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The correct code to generate a random number between 1 and 100 (inclusive) is:
prob = random.randint(1, 101)
prob = random.randint(1, 100)
prob = random.randint(0, 101)
prob = random.randint(0, 101)
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
ICT Java programming workshop
Quiz
•
9th Grade
10 questions
Year 8 - Unit 2: Small Basic Programming Terminology
Quiz
•
9th Grade
12 questions
website design elements
Quiz
•
12th Grade
15 questions
Javascript Quiz 2
Quiz
•
11th Grade
14 questions
LA7.C7: Turtle Graphics
Quiz
•
9th Grade - University
10 questions
Year 8 - Progress Check 1 (Python Turtle Shapes)
Quiz
•
8th - 9th Grade
15 questions
M2S5P1
Quiz
•
12th Grade
13 questions
Раздел 5, информатика, 8 класс
Quiz
•
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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
