
Python Random and Turtle Quiz

Quiz
•
Information Technology (IT)
•
9th Grade
•
Easy
Fadi Fadi
Used 1+ times
FREE Resource
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of random.randint(2, 8)?
A random integer between 2 and 7
A random float between 2 and 8
A random integer between 2 and 8 (inclusive)
Always returns 5
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is the correct way to import the random module to use randint?
import randint
from os import random
import random
from math import randint
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens when random.randint(1, 1) is executed?
Returns 1
Returns None
Raises an error
Returns a random number between 0 and 1
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these random.randint() calls is invalid?
random.randint(1, 100)
random.randint(5, 10)
random.randint(-5, 5)
random.randint(10, 5)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary use of the random module?
Sorting lists alphabetically
Generating random numbers or selections
Creating random images
Performing mathematical calculations
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does pen.penup() do in the Turtle module?
Moves the turtle backward
Lowers the pen to start drawing
Lifts the pen to stop drawing
Rotates the turtle
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which command correctly moves the turtle forward by 50 units?
pen.forward(50)
pen.up(50)
turtle.left(50)
turtle.move(50)
Create a free account and access millions of resources
Similar Resources on Wayground
40 questions
Latihan Soal Materi Informatika kelas 8 smt 1

Quiz
•
8th Grade - University
39 questions
Domain 4 Software Devevelopment Q39 Practice Exams question bank

Quiz
•
9th Grade
39 questions
Quiz Pengetahuan Umum TIK

Quiz
•
9th Grade - University
35 questions
Chapter 3 Mastering Significant Figures and Estimation

Quiz
•
7th Grade - University
35 questions
ASTS TIK 6 GENAP

Quiz
•
6th Grade - University
45 questions
LATIAN SAS INFORMATIKA 2025 IX-GENAP

Quiz
•
9th Grade
40 questions
ASAS Informatika I kelas 9 2024-2025

Quiz
•
9th Grade
41 questions
Content Creation Tip, Tricks & Strategies

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
10 questions
Chaffey

Quiz
•
9th - 12th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
22 questions
6-8 Digital Citizenship Review

Quiz
•
6th - 8th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
10 questions
Chaffey

Quiz
•
9th - 12th Grade
40 questions
Algebra Review Topics

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

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Lab Safety and Lab Equipment

Quiz
•
9th - 12th Grade
24 questions
Scientific method and variables review

Quiz
•
9th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade