
NumPy & Matplotlib Basics

Quiz
•
Engineering
•
University
•
Medium
Hitendra Sarma
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following code output? import numpy as np a = np.array([[1, 2], [3, 4]]) print(a.shape)
(2,)
(2, 2)
(4,)
2x2
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which NumPy function creates an array of all zeros?
np.zeros()
np.empty()
np.ones()
np.fill()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of np.arange(1, 6, 2)?
[1, 2, 3, 4, 5]
[1, 3, 5]
[2, 4, 6]
[1, 2, 4]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function in NumPy is used for matrix multiplication (dot product)?
*
np.multiply()
np.dot()
np.append()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does matplotlib.pyplot.plot() do by default?
Plots a bar chart
Plots an image
Plots a line chart
Plots a 3D surface
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does this code do? import matplotlib.pyplot as plt plt.plot([1, 2, 3], [4, 5, 6]) plt.show()
Displays a horizontal bar chart
Displays a 3D plot
Displays a simple line graph
Displays an error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the use of plt.subplot(2, 1, 1) in Matplotlib?
Create a 2-row, 1-column grid and activate the 1st subplot
Create a 1-row, 2-column grid
Create two separate figures
Plot two graphs in one window with transparency
Create a free account and access millions of resources
Similar Resources on Wayground
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Engineering
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University