Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

QUIZ 3 - Programming for Technology Professionals

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Matplotlib is a ____ library for the Python programming language.

a)

data science

b)

mathematics

c)

numpy

d)

plotting

2.

Which is the correct command to install Matplotlib?

a)

pip install matplotlib

b)

pip install matplotlib.pz

c)

pip install matplotlib.*

d)

All of the above

3.

Which color is the default color of a Matplotlib plot?

a)

Red

b)

Green

c)

Blue

d)

Black

4.

Which is the correct import statement to import pyplot?

a)

import matplotlib.pyplot as plt

b)

import pyplot

c)

Both A and B

d)

None of the above

5.

Which function is used to draw points (markers) in a diagram?

a)

write()

b)

draw()

c)

plot()

d)

paint()

6.

Which argument keyword can be used to emphasize each point with a specified marker in plotting?

a)

marker_points

b)

marker

c)

ring

d)

types

7.

Which function is used to set a label for the x-axis in pyplot?

a)

xlabel()

b)

set_x()

c)

x-axis()

d)

xaxi()

8.

Which function is used to set a title for the plot?

a)

desc()

b)

title()

c)

head()

d)

None of the above

9.

Which function is used to draw a scatter plot?

a)

scatterplot()

b)

pyscatter()

c)

scatters()

d)

scatter()

10.

Which parameter(s) is/are used to define the color of the points in a scatter plot?

a)

color

b)

c

c)

Both A and B

d)

None of the above