
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 Elemen 6 Bacaan
Quiz
•
10th Grade
15 questions
S2 Microsoft Access Database Quiz
Quiz
•
10th Grade - University
21 questions
Direct Data Entry Devices, Advantages and Disadvantages
Quiz
•
7th Grade - University
16 questions
2.3 Programming Data Review
Quiz
•
9th - 12th Grade
15 questions
Module 2 Quiz
Quiz
•
10th Grade
15 questions
Affinity Photo 2 Tools
Quiz
•
9th - 10th Grade
15 questions
6-sinfl. Ofis dasturlari va Scratch
Quiz
•
6th Grade - University
20 questions
DPK 2.5
Quiz
•
10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Cell Organelles and Their Functions
Interactive video
•
6th - 10th Grade
22 questions
El Imperfecto
Quiz
•
9th - 12th Grade
20 questions
SSS/SAS
Quiz
•
9th - 12th Grade
20 questions
verbos reflexivos en español
Quiz
•
9th - 12th Grade
14 questions
Making Inferences From Samples
Quiz
•
7th - 12th Grade
23 questions
CCG - CH8 Polygon angles and area Review
Quiz
•
9th - 12th Grade
8 questions
Momentum and Collisions
Lesson
•
9th - 12th Grade