CUET Computer/IP: Informatics PracticesMatplotlib Plotting. Free, no login required.

Q1:

2026: 18 May Shift 2

Matplotlib Plotting

Easy

Informatics Practices

______________ is used to display the figure, where 'plt' is an alias.

Answer options
Option 2
Correct Answer
Explanation for 2026: 18 May Shift 2 CSE question 1

Q2:

2026: 18 May Shift 2

Matplotlib Plotting

Medium

Informatics Practices

Match the LIST-I with LIST-II

LIST-ILIST-II
A.Box plotI.Used for continuous dataset
B.Line plotII.Also called correlation plots
C.Scatter plotIII.Each column represents a range of values
D.HistogramIV.For outliers
Answer options
Option 3
Correct Answer
Explanation for 2026: 18 May Shift 2 CSE question 2

Q3:

2026: 18 May Shift 2

Matplotlib Plotting

Easy

Informatics Practices

In a box plot, what does whiskers represents?

Answer options
Option 4
Correct Answer
Explanation for 2026: 18 May Shift 2 CSE question 3

Q4:

2026: 18 May Shift 2

Matplotlib Plotting

Easy

Informatics Practices

Week 1Week 2Week 3Day
600050005000Monday
650035003500Tuesday
700055006000Wednesday
450047004800Thursday
580052005600Thursday

For the above table, which plot is the most suitable to depict the comparison between the weeks?

Answer options
Option 4
Correct Answer
Explanation for 2026: 18 May Shift 2 CSE question 4

Q5:

2026: 18 May Shift 2

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

Answer options
Option 1
Correct Answer
Explanation for 2026: 18 May Shift 2 CSE question 5

Q6:

2026: 13 May Shift 2

Matplotlib Plotting

Easy

Informatics Practices

Which plot is used to show the maximum value, minimum value, quartiles and outliers present in the data set?

Answer options
Option 1
Correct Answer
Explanation for 2026: 13 May Shift 2 CSE question 6

Q7:

2026: 13 May Shift 2

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

Answer options
Option 2
Correct Answer
Explanation for 2026: 13 May Shift 2 CSE question 7

Q8:

2026: 13 May Shift 2

Matplotlib Plotting

Medium

Informatics Practices

Match List-I with List-II

List-IList-II
(A) Whiskers(I) Alias
(B) Explode(II) Histogram
(C) Bins(III) Pie Chart
(D) Plt(IV) Box Plot
Answer options
Option 2
Correct Answer
Explanation for 2026: 13 May Shift 2 CSE question 8

Q9:

2026: 13 May Shift 2

Matplotlib Plotting

Easy

Informatics Practices

A figure can also be saved by using __________ function in Python.

Answer options
Option 2
Correct Answer
Explanation for 2026: 13 May Shift 2 CSE question 9

Q10:

2026: 13 May Shift 2

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)

Answer options

Q11:

2026: 13 May Shift 2

Matplotlib Plotting

Easy

Informatics Practices

Identify the chart in the following diagram?

Figure

Answer options

Q12:

2026: 11 May Shift 2

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)

Answer options

Q13:

2026: 11 May Shift 2

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.

Answer options

Q14:

2026: 11 May Shift 2

Matplotlib Plotting

Easy

Informatics Practices

In which of the scenario, a histogram will be more informative than a pie chart for a dataset?

Answer options

Q15:

2026: 11 May Shift 2

Matplotlib Plotting

Easy

Informatics Practices

How can you create a dashed line in matplotlib?

Answer options

Q16:

2026: 11 May Shift 2

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?

Answer options

Q17:

2026: 11 May Shift 2

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?

Answer options

Q18:

2025: 3 June Shift 2

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

Answer options

Q19:

2025: 3 June Shift 2

Matplotlib Plotting

Easy

Informatics Practices

A ____ is any symbol that represent a data value in a line chart or a scatter chart.

Answer options

Q20:

2025: 3 June Shift 2

Matplotlib Plotting

Easy

Informatics Practices

The ___________is a visual representation of the statistical summary of a given data set.

Answer options

Q21:

2025: 3 June Shift 2

Matplotlib Plotting

Easy

Informatics Practices

How can you install matplotlib?

Answer options

Q22:

2025: 3 June Shift 2

Matplotlib Plotting

Easy

Informatics Practices

A histogram is used to __________________.

Answer options

Q23:

2025: 3 June Shift 2

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?

Answer options

Q24:

2025: 30 May Shift 2

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.

Answer options

Q25:

2025: 30 May Shift 2

Matplotlib Plotting

Easy

Informatics Practices

Which attribute of plot() function is used to set the style of line in a line chart?

Answer options

Q26:

2025: 30 May Shift 2

Matplotlib Plotting

Easy

Informatics Practices

Which of the following is not a valid plotting function in pyplot?

Answer options

Q27:

2025: 30 May Shift 2

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.)

Answer options

Q28:

2025: 30 May Shift 2

Matplotlib Plotting

Medium

Informatics Practices

Which of the following are valid customization of pie chart?

(A) Explode

(B) Whiskers

(C) Autopct

(D) legend

Answer options

Q29:

2025: 30 May Shift 2

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.

Answer options

Q30:

2025: 27 May Shift 2

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?

Answer options