
Random Functions and Turtle Graphics Quiz
Quiz
•
Information Technology (IT)
•
10th Grade
•
Medium
Fadi Fadi
Used 9+ times
FREE Resource
Enhance your content
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)
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
Career Alignment for Drone Technology
Quiz
•
10th Grade - University
16 questions
Uji Pemahaman Komputasi
Quiz
•
10th Grade
15 questions
ICT G7 Chapter 2.2 Direct Data Entry Devices
Quiz
•
7th Grade - University
21 questions
Unit 3: Basic Python & Console Interaction
Quiz
•
9th - 12th Grade
20 questions
Advanced Drone Regulations Quiz
Quiz
•
5th Grade - University
18 questions
Unit 2 The Internet
Quiz
•
9th - 12th Grade
20 questions
YEAR 7 MID-TERM ASSESSMENT
Quiz
•
7th Grade - University
20 questions
Quiz Komputasional-Struktur Data kelas 9
Quiz
•
9th Grade - University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
Discover more resources for Information Technology (IT)
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
17 questions
Afro Latinos: Una Historia Breve Examen
Quiz
•
9th - 12th Grade
17 questions
Hispanic Heritage Month Trivia
Quiz
•
9th - 12th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
15 questions
PRESENTE CONTINUO
Quiz
•
9th - 12th Grade