NumPy & Matplotlib Basics

NumPy & Matplotlib Basics

University

10 Qs

quiz-placeholder

Similar activities

TRICODE CHALLENGE ROUND 1

TRICODE CHALLENGE ROUND 1

University

15 Qs

Data Science Quizz

Data Science Quizz

University

14 Qs

Understanding Jet Engine Ignition Systems

Understanding Jet Engine Ignition Systems

12th Grade - University

10 Qs

Matplotlib

Matplotlib

University

10 Qs

Total Quality Management and Six Sigma Quiz

Total Quality Management and Six Sigma Quiz

University

15 Qs

Code Blitz 40

Code Blitz 40

University

15 Qs

Cuestionario Guía 1

Cuestionario Guía 1

University

5 Qs

CIVILWAR DAY 24 - KWA (ESTIMATION,FM)

CIVILWAR DAY 24 - KWA (ESTIMATION,FM)

1st Grade - University

10 Qs

NumPy & Matplotlib Basics

NumPy & Matplotlib Basics

Assessment

Quiz

Engineering

University

Medium

Created by

Hitendra Sarma

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?