EDA Python - 16-2Numpy_random_and_masks
Interactive Video
•
Information Technology (IT), Architecture
•
University
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Read more
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What function is used to create a 5x5 array of random integers in NumPy?
np.random.randint
np.array.randint
np.random.rand
np.array.random
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you add a third dimension to a NumPy array?
By specifying three dimensions in the array creation
By using the flatten function
By stacking two arrays
By using the reshape function
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of adding a NumPy array to itself?
Each element is doubled
The array is transposed
The array is flattened
Each element is squared
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operation will give the square root of each element in a NumPy array?
array / 2
np.square(array)
array ** 0.5
np.sqrt(array)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does a Boolean mask in a NumPy array do?
Sorts the array in ascending order
Converts the array to a list
Changes the data type of the array
Selects elements based on a condition
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
2 questions
Introduction To Website Development Technologies - JavaScript and HTML DOM
Interactive video
•
University
2 questions
Java Multithreading and Parallel Programming Masterclass - Crushing Matrixes with Barriers
Interactive video
•
University
2 questions
C++ Developer - Dynamic Memory - Part 2
Interactive video
•
University
2 questions
Java Interview Guide : 200+ Interview Questions and Answers - Collections & List Interface methods and classes - ArrayLi
Interactive video
•
University
4 questions
Scientists dig up rare fossil rich quarry in North Cotswolds
Interactive video
•
University
5 questions
Data Science and Machine Learning (Theory and Projects) A to Z - NumPy for Numerical Data Processing: Arrange, Random, a
Interactive video
•
University
8 questions
Java Programming for Complete Beginners - Java 16 - Step 01 - List Files and Folders in Directory with Files List Method
Interactive video
•
University
8 questions
Graphical User Interface in Python Part 1
Interactive video
•
University
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
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University