
NumPy & Matplotlib Basics
Quiz
•
Engineering
•
University
•
Medium
Hitendra Sarma
Used 2+ times
FREE Resource
Enhance your content in a minute
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
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
Regression Model
Quiz
•
University
10 questions
SOLIDWORKS Quiz
Quiz
•
University
10 questions
Alpro 2 Mg 1 - Understanding C++ Basics
Quiz
•
University
15 questions
Understanding Algorithms and Heuristics
Quiz
•
University
10 questions
NLP_B1_W8
Quiz
•
University
10 questions
Quality Management Quiz 7
Quiz
•
University
10 questions
Keputusan dalam Pemrograman Python
Quiz
•
University
12 questions
ANALISIS DE ALGORITMOS
Quiz
•
University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade
Discover more resources for Engineering
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
25 questions
Waves-8th Grade Physical Science
Quiz
•
KG - University
41 questions
Unit 8 Key Terms
Quiz
•
11th Grade - University
10 questions
Product & Quotient Derivative Rules
Quiz
•
University
5 questions
How to Calculate Force - Newton's 2nd Law of Motion
Interactive video
•
10th Grade - University
10 questions
Dichotomous Key
Quiz
•
KG - University
