EDA Python - 16-2Numpy_random_and_masks

Interactive Video
•
Information Technology (IT), Architecture
•
University
•
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
Similar Resources on Wayground
2 questions
JavaScript Mastery from Zero to Hero - Prepare for Coding Interviews - Exercise - Search for Game Items and Clone Array

Interactive video
•
University
6 questions
Python In Practice - 15 Projects to Master Python - Matplotlib Library

Interactive video
•
University
2 questions
Java Programming for Complete Beginners - Java 16 - Step 10 - Java Arrays - Using Person Objects and String Elements wit

Interactive video
•
University
2 questions
Java Programming for Complete Beginners - Java 16 - Step 03 - Java Arrays - Puzzles - Arrays of Objects, Primitive Data

Interactive video
•
University
2 questions
Learn Java from Scratch - A Beginner's Guide - Step 03 - Java Arrays - Puzzles - Arrays of Objects, Primitive Data Types

Interactive video
•
University
2 questions
JavaScript Mastery from Zero to Hero - Prepare for Coding Interviews - Indexing Values in Arrays with JavaScript

Interactive video
•
University
2 questions
REST API Automation Testing from Scratch - REST Assured Java - Solving Complex Queries from JSON Using Simple POJO Metho

Interactive video
•
University
6 questions
JavaScript Mastery from Zero to Hero - Prepare for Coding Interviews - Exercise - Skyrim Dungeon Master Multi-Dimensiona

Interactive video
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

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

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

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

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University