
Random Functions and Turtle Graphics Quiz
Authored by Fadi Fadi
Information Technology (IT)
10th Grade
Used 9+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the random.randint(2, 8) function do?
Generates a random float between 2 and 8
Generates a random integer between 2 and 8 (inclusive)
Generates a random integer between 2 and 7
Always returns 5
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which import statement is correct for using random.randint?
from math import randint
import randint
import random
from os import random
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will random.randint(1, 1) return?
1
A random integer between 0 and 1
An error
None
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is invalid?
random.randint(5, 10)
random.randint(10, 5)
random.randint(1, 100)
random.randint(-5, 5)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the random module?
To generate random images
To generate random numbers or choices
To shuffle lists alphabetically
To perform mathematical calculations
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does pen.penup() do?
Moves the pen up and stops drawing
Lowers the pen to start drawing
Moves the turtle backward
Rotates the turtle
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you make the turtle move 50 units forward?
turtle.move(50)
pen.forward(50)
pen.up(50)
turtle.left(50)
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
20 questions
DPK 2.2
Quiz
•
10th Grade
15 questions
Grade 6 - Living with AI
Quiz
•
6th Grade - University
19 questions
ATS-2 2025 INFORMATIKA VIII
Quiz
•
8th Grade - University
20 questions
Analisis Data dengan Python
Quiz
•
10th Grade
22 questions
Internet and App script
Quiz
•
5th Grade - University
20 questions
Программирование на Python
Quiz
•
10th Grade
15 questions
IP and IPv4 Basics
Quiz
•
10th Grade
15 questions
LibreOffice Writer Styles Quiz
Quiz
•
10th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
15 questions
Making Inferences
Quiz
•
7th - 12th Grade
23 questions
TSI Math Vocabulary
Quiz
•
10th - 12th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Cell Organelles and Their Functions
Interactive video
•
6th - 10th Grade
10 questions
Plotting Points on a Coordinate Plane: Quadrant 1 Essentials
Interactive video
•
6th - 10th Grade
10 questions
Exploring Abiotic and Biotic Factors in Ecosystems
Interactive video
•
6th - 10th Grade
20 questions
SSS/SAS
Quiz
•
9th - 12th Grade
20 questions
Figurative Language Review
Quiz
•
10th Grade