Unit 5: Data Visualization - Subjective Questions

CAP776 — Programming In Python • Practice Questions with Detailed Answers

20 questions

1

Define data visualization. Explain the role of Matplotlib in Python data visualization.

2

Describe how to create and customize a line plot using Matplotlib. Give a suitable Python example.

3

Explain bar charts and distinguish between vertical, horizontal, grouped, and stacked bar charts.

4

Write and explain a Matplotlib program that creates a grouped bar chart for two data series.

5

What is a scatter plot? Explain how it can be used to identify relationships, clusters, and outliers.

6

Create a scatter plot in Matplotlib in which point size and color represent additional variables. Explain the important parameters.

7

Explain the construction, uses, and limitations of a pie chart. Mention how percentages are displayed in Matplotlib.

8

Define a box-and-whisker plot. Explain its five-number summary, interquartile range, whiskers, and outliers.

9

Given the ordered dataset , analyze how it would be represented by a box-and-whisker plot.

10

What is a histogram? Explain the role of bins and distinguish a histogram from a bar chart.

11

Describe how a histogram can be created and customized in Matplotlib. How does density=True affect the result?

12

Explain how multiple subplots can be arranged in one Matplotlib figure using both plt.subplot() and plt.subplots().

13

Design a Matplotlib figure containing four different plots in a arrangement. Explain how titles and layout are managed.

14

Introduce Seaborn and explain its major features and relationship with Matplotlib and pandas.

15

Compare Seaborn and Matplotlib with respect to abstraction, customization, statistical plotting, DataFrame support, and suitable use cases.

16

Explain Seaborn's axes-level and figure-level functions. Give examples and state when each should be used.

17

Describe how relational and categorical data can be visualized using Seaborn. Include suitable code examples.

18

Explain distribution visualization in Seaborn using histograms, kernel density estimates, box plots, and violin plots.

19

What principles should be followed to produce clear, accurate, and accessible data visualizations?

20

What is a data dashboard? Describe important Python tools for creating dashboards and compare their main characteristics.