
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
10 questions
Quiz on Divide and Conquer Approach

Quiz
•
University
15 questions
CYBERSYNAPSE

Quiz
•
University
10 questions
The oops moment/3

Quiz
•
University
10 questions
Metody inwentyczne - analiza morfologiczna+myślenie lateralne

Quiz
•
University
10 questions
Threaded Binary Tree

Quiz
•
University
15 questions
English for Engineering Part 2

Quiz
•
University
10 questions
202405 BGMC4543 Quiz 2

Quiz
•
University
10 questions
Latihan 3 : Array dan grafik, multiple plot dan XY Graph

Quiz
•
University
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Engineering
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University
2 questions
Pronouncing Names Correctly

Quiz
•
University
12 questions
Civil War

Quiz
•
8th Grade - University
18 questions
Parent Functions

Quiz
•
9th Grade - University
21 questions
Mapa países hispanohablantes

Quiz
•
1st Grade - University
19 questions
Primary v. Secondary Sources

Quiz
•
6th Grade - University
25 questions
Identifying Parts of Speech

Quiz
•
8th Grade - University
20 questions
Disney Trivia

Quiz
•
University