Q1:
2026: 18 May Shift 2
Informatics Practices
Matplotlib Plotting
Easy
Informatics Practices
______________ is used to display the figure, where 'plt' is an alias.
2026: 18 May Shift 2
Informatics Practices
Matplotlib Plotting
Easy
Informatics Practices
______________ is used to display the figure, where 'plt' is an alias.
2026: 18 May Shift 2
Informatics Practices
Matplotlib Plotting
Medium
Informatics Practices
Match the LIST-I with LIST-II
| LIST-I | LIST-II | ||
|---|---|---|---|
| A. | Box plot | I. | Used for continuous dataset |
| B. | Line plot | II. | Also called correlation plots |
| C. | Scatter plot | III. | Each column represents a range of values |
| D. | Histogram | IV. | For outliers |
2026: 18 May Shift 2
Informatics Practices
Matplotlib Plotting
Easy
Informatics Practices
In a box plot, what does whiskers represents?
2026: 18 May Shift 2
Informatics Practices
Matplotlib Plotting
Easy
Informatics Practices
| Week 1 | Week 2 | Week 3 | Day |
|---|---|---|---|
| 6000 | 5000 | 5000 | Monday |
| 6500 | 3500 | 3500 | Tuesday |
| 7000 | 5500 | 6000 | Wednesday |
| 4500 | 4700 | 4800 | Thursday |
| 5800 | 5200 | 5600 | Thursday |
For the above table, which plot is the most suitable to depict the comparison between the weeks?
2026: 18 May Shift 2
Informatics Practices
Matplotlib Plotting
Medium
Informatics Practices
Which of the following statements are true about box plot?
A. Used for finding outliers
B. A shorter distance between box and whiskers indicates larger variation in data
C. Has 4 quartiles
D. Gives a statistical summary of a dataset
2026: 13 May Shift 2
Informatics Practices
Matplotlib Plotting
Easy
Informatics Practices
Which plot is used to show the maximum value, minimum value, quartiles and outliers present in the data set?
2026: 13 May Shift 2
Informatics Practices
Matplotlib Plotting
Easy
Informatics Practices
Arrange the following python statements for plotting the scatter plot:
(A) import matplotlib library
(B) show the plot
(C) define the two values for x-axis and y-axis
(D) use a scatter plot function
2026: 13 May Shift 2
Informatics Practices
Matplotlib Plotting
Medium
Informatics Practices
Match List-I with List-II
| List-I | List-II |
|---|---|
| (A) Whiskers | (I) Alias |
| (B) Explode | (II) Histogram |
| (C) Bins | (III) Pie Chart |
| (D) Plt | (IV) Box Plot |
2026: 13 May Shift 2
Informatics Practices
Matplotlib Plotting
Easy
Informatics Practices
A figure can also be saved by using __________ function in Python.
2026: 13 May Shift 2
Informatics Practices
Matplotlib Plotting
Easy
Informatics Practices
Arrange the following code for plotting the Boxplot:
(A) data= pd.read_csv('exam.csv')
(B) df.plot(kind='box',title='exam')
(C) import pandas as pd; import matplotlib.pyplot as plt
(D) df= pd.DataFrame(data)
2026: 13 May Shift 2
Informatics Practices
Matplotlib Plotting
Easy
Informatics Practices
Identify the chart in the following diagram?

2026: 11 May Shift 2
Informatics Practices
Matplotlib Plotting
Easy
Informatics Practices
Arrange the given steps of drawing chart using matplotib library in correct order.
A. plt.show()
B. import matplotlib.pyplot as plt
C. pip install matplotlib
D. date=["25/12","26/12","27/12"]
temp=[8.5,10.5,6.8]
E. plt.plot(date, temp)
2026: 11 May Shift 2
Informatics Practices
Matplotlib Plotting
Easy
Informatics Practices
____________ are column chart where each column represents a range of values and the height of a column corresponds to how many values are in that range.
2026: 11 May Shift 2
Informatics Practices
Matplotlib Plotting
Easy
Informatics Practices
In which of the scenario, a histogram will be more informative than a pie chart for a dataset?
2026: 11 May Shift 2
Informatics Practices
Matplotlib Plotting
Easy
Informatics Practices
How can you create a dashed line in matplotlib?
2026: 11 May Shift 2
Informatics Practices
Matplotlib Plotting
Easy
Informatics Practices
Prayatna sells designer bags and wallets. During the sales season, he gave discounts ranging from 10% to 50% over a period of 5 weeks. He recorded his sales for each type of discount in an array. Which is the most suitable plot to show a relationship between the discount offered and sales made?
2026: 11 May Shift 2
Informatics Practices
Matplotlib Plotting
Easy
Informatics Practices
When plotting a pie chart with plt.pie(), which keyword argument allows for the display of percentage values inside the slices?
2025: 3 June Shift 2
Informatics Practices
Matplotlib Plotting
Easy
Informatics Practices
Arrange the following steps to draw a customized scatter plot using matplotlib.
(A) import pandas as pd
(B) use plt.scatter() with customized color, size and marker style
(C) create two data series for x and y values
(D) add labels, title and display the plot
2025: 3 June Shift 2
Informatics Practices
Matplotlib Plotting
Easy
Informatics Practices
A ____ is any symbol that represent a data value in a line chart or a scatter chart.
2025: 3 June Shift 2
Informatics Practices
Matplotlib Plotting
Easy
Informatics Practices
The ___________is a visual representation of the statistical summary of a given data set.
2025: 3 June Shift 2
Informatics Practices
Matplotlib Plotting
Easy
Informatics Practices
How can you install matplotlib?
2025: 3 June Shift 2
Informatics Practices
Matplotlib Plotting
Easy
Informatics Practices
A histogram is used to __________________.
2025: 3 June Shift 2
Informatics Practices
Matplotlib Plotting
Medium
Informatics Practices
We want to show the sales for all weeks increased during the weekends. Which will be the most suited plot?
2025: 30 May Shift 2
Informatics Practices
Matplotlib Plotting
Medium
Informatics Practices
Arrange the following statements in the proper order to plot a bar graph.
(A) save the graph.
(B) display the graph.
(C) import matplot library.
(D) import the records from CSV file in a dataframe.
2025: 30 May Shift 2
Informatics Practices
Matplotlib Plotting
Easy
Informatics Practices
Which attribute of plot() function is used to set the style of line in a line chart?
2025: 30 May Shift 2
Informatics Practices
Matplotlib Plotting
Easy
Informatics Practices
Which of the following is not a valid plotting function in pyplot?
2025: 30 May Shift 2
Informatics Practices
Matplotlib Plotting
Medium
Informatics Practices
Arrange the following steps in the correct order to start using Matplotlib:
(A). import matplotlib.pyplot as plt
(B). Use pip install matplotlib in the command prompt
(C). Start plotting using plt.plot()
(D). Understand the components of a plot (figure, axes, etc.)
2025: 30 May Shift 2
Informatics Practices
Matplotlib Plotting
Medium
Informatics Practices
Which of the following are valid customization of pie chart?
(A) Explode
(B) Whiskers
(C) Autopct
(D) legend
2025: 30 May Shift 2
Informatics Practices
Matplotlib Plotting
Easy
Informatics Practices
In ________________ chart each column represents a range of values and the height of a column corresponds to how many values are in that range.
2025: 27 May Shift 2
Informatics Practices
Matplotlib Plotting
Hard
Informatics Practices
You are plotting two datasets with different scales on y-axis. How can you plot them on the same graph, ensuring clarity by using dual y-axis?