When using the NumPy random module, how can you return a random number from 0 to 100?
Python - Numpy Quiz 2

Quiz
•
Computers
•
University - Professional Development
•
Hard

Max Diender
Used 18+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
random.randint(100)
random.rand()
random.rand(100)
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
When using the NumPy random module, how can you return a Normal Data Distribution with 1000 numbers, concentrated around the number 50, with a standard deviation of 0.2?
random.normal(size=1000, normal=50, s=0.1)
random.normal(size=1000, mean=50, deviation=0.2)
random.normal(size=1000, loc=50, scale=0.2)
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
When using the NumPy random module, how can you randomly shuffle an array?
arr = np.array([1, 2, 3, 4, 5])
random.change(arr)
random.shuffle(arr)
random.rearrange(arr)
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
When using the NumPy random module, how can you make sure you always get the same result?
Use the random.seed() function to set a seed before running the other random functions
Use the random.static() function to set an answer before running your random functions
Use the random.change() function to change an answer before running your random functions
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
When using the NumPy random module, what is the probability of getting the value 6 to occur?
random.choice([1, 8, 4, 6], p=[0.2, 0.4, 0.3, 0.1], size=(100))
20%
40%
30%
10%
Similar Resources on Quizizz
5 questions
М1У2 Python Start

Quiz
•
3rd Grade - University
10 questions
Java Arrays

Quiz
•
University
10 questions
Quiz 11

Quiz
•
University
5 questions
Python - Numpy Quiz 1

Quiz
•
University - Professi...
10 questions
Mainstream Development Frameworks

Quiz
•
Professional Development
10 questions
Scipy and Numpy Quiz

Quiz
•
University
10 questions
Quiz 8: Arrays&Vector

Quiz
•
University
10 questions
Modelos en Django

Quiz
•
Professional Development
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