
Python Quiz 1

Quiz
•
Computers
•
9th - 12th Grade
•
Easy
Jessica Fletcher
Used 7+ times
FREE Resource
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)
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Java Strings

Quiz
•
9th - 12th Grade
12 questions
HTML & CSS

Quiz
•
10th - 12th Grade
10 questions
Code.org Unit 5 Vocab Quiz 1

Quiz
•
9th - 12th Grade
12 questions
Exploring Python Turtle Graphics

Quiz
•
7th Grade - University
10 questions
CM Adventure Part 1 - Intro, Stepping, TurnTo & Time Loops

Quiz
•
9th - 10th Grade
15 questions
Computer Science Quiz: Application of Computational Thinking

Quiz
•
10th Grade
17 questions
High and low level languages

Quiz
•
10th - 12th Grade
12 questions
Introduction to programming

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Video Games

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

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
CTEA Computer Vocab Terms #1

Quiz
•
12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade