
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
16 questions
Serial Communication - Sensors
Quiz
•
9th Grade
12 questions
Grade 9 Robotics - Quiz 1
Quiz
•
9th Grade
12 questions
BAI 25_TINHOC
Quiz
•
10th Grade
10 questions
R082 Book Cover Assets planning
Quiz
•
7th - 12th Grade
16 questions
Conditions
Quiz
•
8th - 10th Grade
10 questions
DTJSQuiz
Quiz
•
11th Grade
13 questions
Python
Quiz
•
9th Grade
15 questions
ASAS PEMBELAJARAN DIGITAL
Quiz
•
9th - 12th 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
