WorksheetsData Visualization
Total questions: 35
Worksheet time: 1hrs 10mins
What does these 4 colour boxes on extreme right side called
title
legend
heading
xlabel
Plot can be saved in a pdf form
True
False
The most popular data visualization library in python is _______.
pip
histogram
matplotlib
matpiplib
Markers are the data points in the line graph?
True
False
Which of the following methods should be employed in the code to display a plot?
display()
show()
execute()
plot()
Which Python Package is used for 2D graphics?
matplotlib.pyplot
matplotlib.pip
matplotlib.numpy
matplotlib.plt
________________function is used to create a horizontal bar chart.
barchart()
barh()
bar()
None of the above
Which type of data visualization is this?
Frequency table
Bar graph
Histogram
Scatter plot
According to the graph, about how many trees are between 150 and 200cm tall?
4 trees
11 trees
27 trees
30 trees
Which type of data visualization should you use to represent frequencies for a continuous variable?
Bar graph
Histogram
Scatterplot
Pie chart
The process of data representation through plots and graphs is called ____________.
Data Science
Data Visualization
Data
Drawing
This is an example of a ________________ plot.
Column
Area
Scatter
Line
Choose the correct option.
plt.xlabel("Year")
plt.ylabel("Year")
plt.title("Year")
plt.DataFrame("Year")
Choose the correct option
plt.xlabel("Tree Growth")
plt.ylabel("Tree Growth")
plt.color("Tree Growth")
plt.title("Tree Growth")
Choose the correct option.
plt.title("Feet")
plt.ylabel("Feet")
plt.xlabel("Feet")
plt.Data("Feet")
It is better to use line plots when the data is related to time, like growth over years.
True
False
__________________ function is used to create line plot in python.
plot()
line()
scatter()
dataframe()
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. Line chart
B Bar chart
C. Pie chart
D. Scatter plot
What is Data Visualization?
is what allows your phone to get online when you're away from Wi-Fi.
is the graphical representation of information and data.
Which of the following correct statement to import pyplot module?
a) import matplotlib.pyplot
b) import MatPlotLib.PyPlot
c) import PyPlot as pl
d) import pyplot.plot
Which of the following is/are correct statement for plot method?
a) pl.plot(x,y,color,others)
b) pl.plot(x,y)
c) pl.plot(x,y,color)
d) all of these
To give a title to x-axis, which of the following method is useful?
a) pl.xtitle(“title”)
b) pl.xlabel(“title”)
c) pl.xheader(“title”)
d) pl.xlabel.show(“title”)
To change the width of bars in bar chart, which of the following argument with a float value is used?
a) thick
b) thickness
c) width
d) barwidth
You can set different width for different bars in bar chart.
True
False
Which method is used to display or show the legends?
a) pl.show()
b) pl.display()
c) pl.legend()
d) pl.values()
Observe the output figure. Identify the coding for obtaining this output.
A.
import matplotlib.pyplot as plt
plt.plot([1,2,3],[4,5,1])
plt.show()
B.
import matplotlib.pyplot as plt
plt.plot([1,2],[4,5])
plt.show()
C.
import matplotlib.pyplot as plt
plt.plot([2,3],[5,1])
plt.show()
D.
import matplotlib.pyplot as plt
plt.plot([1,3],[4,1])
plt.show()
Pyplot's _________ function is used to create histogram.
hist()
boxplot()
bar()
barh()
Which of the codes below should we use to rotate the data ticks on x-axis?
plt.xticks(rotation=30)
plt.ylabel(rotation=30)
plt.yticks(rotation=30)
plt.xlabel(rotation=30)
This is an example of a ___________.
Scatter Chart
Line Graph
Bar Graph
Pie Chart
pyplot interface of matplotlib library is used to create ............... charts.
3 D
2 D
1 D
Which one is the correct syntax for installing matplotlib library?
pip install matplotlib
install pip matplotlib
python –m pip install –U matplotlib
install matplotlib pip
A figure/chart contains __________________
Legend
Axis
labels
Plotting area
All of the above
To plot x versus y, we can write _____________ #plt is an alias for matplotlib.pyplot
plt.plot(y, x)
plt.plot(x)
plt.plot(x,y)
None of the above
Q9. Values which are displayed on x-axis is called _____________
y ticks
x ticks
xy ticks
None of the above
Q10. Values which are displayed on y-axis is called _____________
y ticks
x ticks
xy ticks
None of the above
