
NumPy

Quiz
•
Computers
•
University
•
Hard
RAJKUMAR. K Chennai
Used 5+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not true about NumPy?
It is a cross-platform module
It stands for Number Python
We need to install this module before using it
None of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the function is a function to create a numpy array?
empty()
array()
ones()
All the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the below code?
np.arange(2,8)
array([2, 3, 4, 5, 6, 7])
array([3, 4, 5, 6, 7])
array([2, 3, 4, 5, 6, 7, 8])
array([3, 4, 5, 6, 7, 8])
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find the output of the below code.
a = np.array([[[1,2,3],[4,5,6]]])
print(a.ndim)
1
(1,3)
3
3,1
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the function itemsize() return?
It returns the size of the array
It returns the number of elements in the array
It returns the byte size of each element of the array
None of the above
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find the output of the below code.
a = np.array([[1,2,3],[4,5,6]])
a[1,2]
6
5
2
TypeError
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the below code?
np.linspace(1,5,5)
array([1. , 2.33333333, 3.66666667, 5. ])
array([1., 2., 3., 4., 5.])
array([1. , 1.8, 2.6, 3.4, 4.2, 5. ])
None of the above
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Bertelsmann AI Track Quiz Initiative #3

Quiz
•
University - Professi...
20 questions
Python Quiz

Quiz
•
University
20 questions
LOOKUP

Quiz
•
9th Grade - University
20 questions
Generics

Quiz
•
University
20 questions
Quiz I - Programming in C

Quiz
•
University
20 questions
Array and Loops in C#

Quiz
•
University
20 questions
Python, NumPy, and Pandas Quiz

Quiz
•
University
17 questions
Coding Titans

Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
11 questions
NFL Football logos

Quiz
•
KG - Professional Dev...
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
38 questions
Unit 6 Key Terms

Quiz
•
11th Grade - University
20 questions
La Hora

Quiz
•
9th Grade - University
7 questions
Cell Transport

Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?

Interactive video
•
4th Grade - University