
Lesson 5 Assessment Quiz 1
Authored by Whizara Teacher
Computers
4th - 12th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To include the use of functions that are present in the random library, we must use the option:
import random
random.h
import.random
random.random
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following cannot be returned by the following statement?
random.randrange(4)?
0
4
2.3
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The function random.randint(4) can return only one of the following values. Which?
4
3.4
error
5
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following if the random module has already been imported?
print (random.randint(3.5, 7))
Error
Any integer between 3.5 and 7, including 7
Any integer between 3.5 and 7, excluding 7
The integer closest to the mean of 3.5 and 7
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What cannot be the output of the following if the random module has already been imported?
print(random.randint(21, 56))
21
56
90
34
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
10 questions
Basic Parts of Speech EPS
Quiz
•
9th - 10th Grade
10 questions
Ứng xử trong môi trường số
Quiz
•
10th Grade
10 questions
ICT Grade 8
Quiz
•
8th Grade
9 questions
OCR GCSE CS - 2.1 ERL sorts and searches
Quiz
•
10th - 11th Grade
10 questions
Introduction to Operating System
Quiz
•
5th Grade
10 questions
WINDOWS 10
Quiz
•
7th Grade
10 questions
MEDIA AND INFORMATION LITERACY
Quiz
•
12th Grade
10 questions
Checkpoint 2 Revision
Quiz
•
3rd - 4th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
10 questions
Exploring Valentine's Day with Charlie Brown
Interactive video
•
6th - 10th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
12 questions
Presidents' Day
Quiz
•
KG - 5th Grade