Chapter 16: Data visualization using pyplot - Online Test

Q1. Which is a python package used for 2D graphics?
Answer : Option A
Explaination / Solution:
No Explaination.


Q2. Identify the package manager for Python packages, or modules.
Answer : Option B
Explaination / Solution:
No Explaination.


Q3.

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

Answer : Option A
Explaination / Solution:
No Explaination.


Q4.

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>pip list

Answer : Option A
Explaination / Solution:
No Explaination.


Q5.

To install matplotlib, the following function will be typed in your command prompt. What does “-U”represents?

Python –m pip install –U pip
Answer : Option B
Explaination / Solution:
No Explaination.


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


Answer : Option A
Explaination / Solution:
No Explaination.


Q7.

Read the code:

a. import matplotlib.pyplot as plt

b. plt.plot(3,2)

c. plt.show()

Identify the output for the above coding.
Answer : Option C
Explaination / Solution:
No Explaination.


Q8. Which key is used to run the module?
Answer : Option D
Explaination / Solution:
No Explaination.


Q9.

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.

Answer : Option A
Explaination / Solution:
No Explaination.


Q10.

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 using the Python string formatting.

Answer : Option C
Explaination / Solution:
No Explaination.