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
When using the NumPy random module, how can you return a random number from 0 to 100?
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 Wayground
10 questions
PYTHON_CHAPTER 3

Quiz
•
University
10 questions
C - Programming ( Output based - Loop )

Quiz
•
Professional Development
10 questions
Quiz 12

Quiz
•
University
7 questions
Java arrays

Quiz
•
University
10 questions
TICS

Quiz
•
University
10 questions
MODULE 2: ITPC327

Quiz
•
University
10 questions
Recap : VBA Basic Training

Quiz
•
Professional Development
10 questions
DP-100 day 3

Quiz
•
University - Professi...
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
How to Email your Teacher

Quiz
•
Professional Development
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University