
DATA VISUALIZATION USING PYPLOT: LINE CHART, PIE CHART AND BAR CHART
Quiz by Karan Cindae
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
Which is a python package used for 2D graphics?
Identify the package manager for Python packages, or modules
Read the following code: Identify the purpose of this code and choose the right option from the following.
C:\Users\YourName\AppData\Local\Programs\Python\Python36-32\Scripts>pip –version
Read the following code: Identify the purpose of this code and choose the right option from the following.
C:\Users\Your Name\AppData\Local\Programs\Python\Python36-32\Scripts>piplist
To install matplotlib, the following command will be typed in your command prompt.What does “-U”represents?
Python –m pip install –U matplotlib
Observe the output figure. Identify the coding for obtaining this output.

Read the code:
a. import matplotlib.pyplot as plt
b. plt.plot(3,2)
c. plt.show()
Identify the output for the above coding.
Which key is used to run the module?
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.
Read the statements given below. Identify the right option from the following for pie chart.
Statement A: To make a pie chart with Matplotlib, we can use the plt.pie() function.
Statement B: The autopct parameter allows us to display the percentage value usingthe Python string formatting