What is NumPy?

NumPy and Pandas Quiz

Quiz
•
Other
•
Professional Development
•
Medium
Manikandan Rajendiran
Used 2+ times
FREE Resource
Student preview

24 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A plotting library
A machine learning framework
A scientific computing library
A web development framework
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you create a NumPy array from a Python list?
np.array(list)
numpy(list)
array(list)
create.array(list)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the shape of a 1D NumPy array with 5 elements?
(1, 5)
(5,)
(5, 1)
(1,)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you access the element at the second row and third column of a 2D NumPy array arr?
arr[1, 2]
arr[2, 3]
arr[1][2]
arr[2][3]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the np.zeros((3, 4)) function in NumPy do?
Creates an array with ones
Creates an array with random values
Creates an array with zeros
Creates an identity matrix
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you perform element-wise multiplication of two NumPy arrays a and b?
a * b
np.multiply(a, b)
np.mult(a, b)
a.dot(b)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the np.arange(5, 15, 2) function in NumPy do?
Creates an array with values from 5 to 15
Creates an array with values from 5 to 14 with a step of 2
Creates an array with values from 5 to 15 with a step of 2
Creates an array with values from 5 to 14
Create a free account and access millions of resources
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade