To include the use of functions which are present in the random library, we must use the option:
Random functions

Quiz
•
Computers
•
12th Grade
•
Hard
KVSEC12 PHOTOS
Used 41+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
import random
random.h
import.random
random.random
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The output of the above Python code is either 1 or 2.
True
False
error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the above Python code?
An integer other than 2, 3 and 4
Either 2,3 or 4
Error
3 only
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of above given code
Error
Either 10.4, 56.99 or 76
Any number other than 10.4, 56.99 and 76
56.99 only
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python function (random module has already been imported)?
random.choice('sun')
sun
u
either s,u or n
error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python function, assuming that the random module has already been imported?
random.uniform(3,4)
error
either 3 or 4
Any integer other than 3 and 4
Any decimal value between 3 and 4
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following Python function if the random module has already been imported?
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
Create a free account and access millions of resources
Similar Resources on Quizizz
12 questions
Quiz Input Python

Quiz
•
12th Grade
15 questions
Basics in Java

Quiz
•
9th - 12th Grade
15 questions
list in python

Quiz
•
10th - 12th Grade
15 questions
Python Inbuilt functions

Quiz
•
12th Grade
15 questions
Unit 8 CS Python Test

Quiz
•
12th Grade
11 questions
Python Boolean

Quiz
•
11th - 12th Grade
15 questions
PCEP Section 1A: Understand fundamental terms and definitions

Quiz
•
12th Grade
15 questions
PCEP Section 4C: Python Built-In Exceptions Hierarchy

Quiz
•
12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University