
NumPy and Pandas Quiz

Quiz
•
Other
•
University
•
Easy
Liana Nafisa Saftari
Used 4+ times
FREE Resource
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What function is used to create an array in NumPy?
np.list()
np.array()
np.create()
np.make()
2.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
How can you create a 1D array with values from 0 to 9?
np.arange(10)
np.linspace(0, 10, 1)
np.zeros(10)
np.ones(10)
3.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What does np.zeros((3, 3)) do?
Creates a 1D array of zeros
Creates a 3x3 matrix of ones
Creates a 3x3 matrix of zeros
Returns an error
4.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What is the default datatype for NumPy arrays?
int
float
bool
str
5.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What will np.array([1, 2, 3]) + np.array([4, 5, 6]) return?
[5, 7, 9]
[14, 25, 36]
[[1, 4], [2, 5], [3, 6]]
Error
6.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What does np.mean() compute?
Median
Mean
Mode
Variance
7.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
How do you reshape a 1D array arr of size 12 into a 3x4 array?
arr.reshape(3, 4)
arr.reshape(4, 3)
arr.resize(3, 4)
arr.reshape(2, 6)
Create a free account and access millions of resources
Similar Resources on Wayground
21 questions
Networking and Switching Quiz chapter 2

Quiz
•
University
14 questions
Cisco 1, Module 7

Quiz
•
University
18 questions
Robot Technology

Quiz
•
University
20 questions
MATHS Examen maths S1 ECO

Quiz
•
University
20 questions
EDB - podstawy pierwszej pomocy

Quiz
•
University
20 questions
POST TEST MODULE 7

Quiz
•
University
20 questions
Pierwsza pomoc

Quiz
•
University
15 questions
business research methods

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
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
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University