
NumPy Functions and Operations Quiz
Authored by Muhammad Talha
Computers
12th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the np.array() function do?
Creates a dictionary
Creates a list
Creates a multidimensional array
Creates a pandas DataFrame
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a method to create a NumPy array?
np.zeros()
np.ones()
np.arrays()
np.random.random()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default data type of a NumPy array when not specified?
int32
float64
int64
object
4.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which NumPy function is used to generate evenly spaced numbers over a specified range?
np.linspace()
np.arange()
np.arange_spaced()
np.range()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does arr.reshape(4, 3) do?
Flattens the array
Reshapes the array into a 4x3 matrix
Transposes the array
Adds dimensions to the array
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following methods can be used to flatten a multidimensional NumPy array?
np.flatten()
arr.reshape(-1)
np.change()
Both B and C
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output shape of np.array([1, 2, 3, 4, 5, 6]).reshape(2, -1)? where -1 means numpy will automatically select number for you.
(2, 2)
(2, 3)
(3, 2)
(6, 1)
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
20 questions
L73_118 Prep for Test
Quiz
•
12th Grade - University
20 questions
Pointers
Quiz
•
12th Grade
19 questions
LATIHAN PAS
Quiz
•
9th - 12th Grade
15 questions
REMEDI UH INFORMATIKA BAB 2 "BERPIKIR KOMPUTASIONAL"
Quiz
•
10th Grade - University
15 questions
Javascript
Quiz
•
10th - 12th Grade
20 questions
Advanced Excel
Quiz
•
KG - University
15 questions
Programming basics
Quiz
•
12th Grade
20 questions
NP IT Quiz ปริศนาไอที #4
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
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
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade
11 questions
Valentine's Day Trivia
Quiz
•
8th - 12th Grade
10 questions
Factor Quadratic Expressions with Various Coefficients
Quiz
•
9th - 12th Grade
18 questions
Success Strategies
Quiz
•
9th - 12th Grade
10 questions
Valentine's Day Trivia
Quiz
•
9th - 12th Grade