wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Data Visualization

Total questions: 35

Worksheet time: 1hrs 10mins

Name
Class
Date
1.

What does these 4 colour boxes on extreme right side called

a)

title

b)

legend

c)

heading

d)

xlabel

2.

Plot can be saved in a pdf form

a)

True

b)

False

3.

The most popular data visualization library in python is _______.

a)

pip

b)

histogram

c)

matplotlib

d)

matpiplib

4.

Markers are the data points in the line graph?

a)

True

b)

False

5.

Which of the following methods should be employed in the code to display a plot?

a)

display()

b)

show()

c)

execute()

d)

plot()

6.

Which Python Package is used for 2D graphics?

a)

matplotlib.pyplot

b)

matplotlib.pip

c)

matplotlib.numpy

d)

matplotlib.plt

7.

________________function is used to create a horizontal bar chart.

a)

barchart()

b)

barh()

c)

bar()

d)

None of the above

8.

Which type of data visualization is this?

a)

Frequency table

b)

Bar graph

c)

Histogram

d)

Scatter plot

9.

According to the graph, about how many trees are between 150 and 200cm tall?

a)

4 trees

b)

11 trees

c)

27 trees

d)

30 trees

10.

Which type of data visualization should you use to represent frequencies for a continuous variable?

a)

Bar graph

b)

Histogram

c)

Scatterplot

d)

Pie chart

11.

The process of data representation through plots and graphs is called ____________.

a)

Data Science

b)

Data Visualization

c)

Data

d)

Drawing

12.

This is an example of a ________________ plot.

a)

Column

b)

Area

c)

Scatter

d)

Line

13.

Choose the correct option.

a)

plt.xlabel("Year")

b)

plt.ylabel("Year")

c)

plt.title("Year")

d)

plt.DataFrame("Year")

14.

Choose the correct option

a)

plt.xlabel("Tree Growth")

b)

plt.ylabel("Tree Growth")

c)

plt.color("Tree Growth")

d)

plt.title("Tree Growth")

15.

Choose the correct option.

a)

plt.title("Feet")

b)

plt.ylabel("Feet")

c)

plt.xlabel("Feet")

d)

plt.Data("Feet")

16.

It is better to use line plots when the data is related to time, like growth over years.

a)

True

b)

False

17.

__________________ function is used to create line plot in python.

a)

plot()

b)

line()

c)

scatter()

d)

dataframe()

18.

Identify the right type of chart using the following hints.

Hint 1: This chart is often used to visualize a trend in data over intervals of time.

Hint 2: The line in this type of chart is often drawn chronologically.

a)

A. Line chart

b)

B Bar chart

c)

C. Pie chart

d)

D. Scatter plot

19.

What is Data Visualization?

a)

is what allows your phone to get online when you're away from Wi-Fi.

b)

is the graphical representation of information and data.

20.

Which of the following correct statement to import pyplot module?

a)

a) import matplotlib.pyplot

b)

b) import MatPlotLib.PyPlot

c)

c) import PyPlot as pl

d)

d) import pyplot.plot

21.

Which of the following is/are correct statement for plot method?

a)

a) pl.plot(x,y,color,others)

b)

b) pl.plot(x,y)

c)

c) pl.plot(x,y,color)

d)

d) all of these

22.

To give a title to x-axis, which of the following method is useful?

a)

a) pl.xtitle(“title”)

b)

b) pl.xlabel(“title”)

c)

c) pl.xheader(“title”)

d)

d) pl.xlabel.show(“title”)

23.

To change the width of bars in bar chart, which of the following argument with a float value is used?

a)

a) thick

b)

b) thickness

c)

c) width

d)

d) barwidth

24.

You can set different width for different bars in bar chart.

a)

True

b)

False

25.

Which method is used to display or show the legends?

a)

a) pl.show()

b)

b) pl.display()

c)

c) pl.legend()

d)

d) pl.values()

26.

Observe the output figure. Identify the coding for obtaining this output.

a)

A.

import matplotlib.pyplot as plt

plt.plot([1,2,3],[4,5,1])

plt.show()

b)

B.

import matplotlib.pyplot as plt

plt.plot([1,2],[4,5])

plt.show()

c)

C.

import matplotlib.pyplot as plt

plt.plot([2,3],[5,1])

plt.show()

d)

D.

import matplotlib.pyplot as plt

plt.plot([1,3],[4,1])

plt.show()

27.

Pyplot's _________ function is used to create histogram.

a)

hist()

b)

boxplot()

c)

bar()

d)

barh()

28.

Which of the codes below should we use to rotate the data ticks on x-axis?

a)

plt.xticks(rotation=30)

b)

plt.ylabel(rotation=30)

c)

plt.yticks(rotation=30)

d)

plt.xlabel(rotation=30)

29.

This is an example of a ___________.

a)

Scatter Chart

b)

Line Graph

c)

Bar Graph

d)

Pie Chart

30.

pyplot interface of matplotlib library is used to create ............... charts.

a)

3 D

b)

2 D

c)

1 D

31.

Which one is the correct syntax for installing matplotlib library?

a)

pip install matplotlib

b)

install pip matplotlib

c)

python –m pip install –U matplotlib

d)

install matplotlib pip

32.

A figure/chart contains __________________

a)

Legend

b)

Axis

c)

labels

d)

Plotting area

e)

All of the above

33.

To plot x versus y, we can write _____________ #plt is an alias for matplotlib.pyplot

a)

plt.plot(y, x)

b)

plt.plot(x)

c)

plt.plot(x,y)

d)

None of the above

34.

Q9. Values which are displayed on x-axis is called _____________

a)

y ticks

b)

x ticks

c)

xy ticks

d)

None of the above

35.

Q10. Values which are displayed on y-axis is called _____________

a)

y ticks

b)

x ticks

c)

xy ticks

d)

None of the above