
Python Random and Turtle Graphics Quiz

Quiz
•
Information Technology (IT)
•
10th Grade
•
Hard
Fadi Fadi
Used 1+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the random.randint(1, 10) function do?
Generates a random float between 1 and 10
Generates a random integer between 1 and 10
Generates a random integer between 0 and 10
Generates a random integer between 1 and 9
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which library must you import to use the random.randint function?
math
random
os
sys
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will random.randint(5, 5) return?
An error
A random integer between 1 and 5
Always 5
None of the above
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which command is used to move the pen without drawing?
pendown()
penup()
forward()
left()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the turtle.forward(100) command do?
Moves the turtle backward by 100 units
Rotates the turtle 100 degrees
Moves the turtle forward by 100 units
Changes the speed to 100
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does turtle.right(90) do?
Turns the turtle 90 degrees to the left
Rotates the turtle 90 degrees clockwise
Moves the turtle forward by 90 units
Changes the turtle’s color to blue
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you change the pen size in the Turtle module?
pen.size(5)
penwidth(5)
pensize(5)
pen.size = 5
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Sequencing Blockly - 1

Quiz
•
7th Grade - University
9 questions
Blockly Programming Quiz [Level 1B]

Quiz
•
7th Grade - University
16 questions
9 Weeks Test

Quiz
•
9th - 12th Grade
15 questions
Lesson 3: Equal Access

Quiz
•
9th - 12th Grade
10 questions
Pre Test Informatika Kelas 10

Quiz
•
10th Grade
8 questions
Perangkat Keras Komputer

Quiz
•
10th Grade
16 questions
Minecraft Education Edition Basics Quiz

Quiz
•
7th Grade - University
15 questions
Programming Languages & MakeCode Arcade Basics

Quiz
•
10th 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 Information Technology (IT)
10 questions
Video Games

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

Interactive video
•
6th - 10th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
6 questions
Rule of Law

Quiz
•
6th - 12th Grade
15 questions
ACT Math Practice Test

Quiz
•
9th - 12th Grade
18 questions
Hispanic Heritage Month

Quiz
•
KG - 12th Grade
10 questions
Would you rather...

Quiz
•
KG - University