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

Q1:

2026: 31 May Shift 1

Matplotlib Plotting

Easy

Informatics Practices

A ____ plot is two dimensional data visualization method that uses dots to represent the values obtained for two different variable one plotted along x-axis and another plotted along y-axis.

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

Q2:

2026: 31 May Shift 1

Matplotlib Plotting

Easy

Informatics Practices

To customize the plot and create the dashed line pattern, which of the following parameter is used?

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

Q3:

2026: 31 May Shift 1

Matplotlib Plotting

Easy

Informatics Practices

Match the LIST-I with LIST-II

LIST-ILIST-II
A.Pie ChartI.Tracking trends over time
B.Box PlotII.Displays frequency distribution
C.HistogramIII.Visualizing the spread of data and outliers
D.Line PlotIV.Showing proportional data as percentage
Answer options
Option 3
Correct Answer
Explanation for 2026: 31 May Shift 1 CSE question 3

Q4:

2026: 31 May Shift 1

Matplotlib Plotting

Easy

Informatics Practices

The ____ are the two lines outside the box that extend to the highest and lowest values in box plot.

Answer options
Option 1
Correct Answer
Explanation for 2026: 31 May Shift 1 CSE question 4

Q5:

2026: 31 May Shift 1

Matplotlib Plotting

Easy

Informatics Practices

Which of the follwoing is NOT a valid component of a plot?

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

Q6:

2026: 31 May Shift 1

Matplotlib Plotting

Easy

Informatics Practices

Arrange the following steps to create a frequency polygon using matplotlib.

A. import matplotlib.pyplot as plt

B. Add labels, title and display the plot

C. Create data and generate frequency count

D. Use plt.plot with frequency count as y-axis

Answer options
Option 3
Correct Answer
Explanation for 2026: 31 May Shift 1 CSE question 6

Q7:

2026: 29 May Shift 2

Matplotlib Plotting

Easy

Informatics Practices

Consider the following command:

plt.hist(data, bins =10, color = 'red', edgecolor = 'blue')

What bins=10 specify?

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

Q8:

2026: 29 May Shift 2

Matplotlib Plotting

Easy

Informatics Practices

Arrange the following code to plot temperature against date using matplotlib in correct order.

A. date = ["25/12", "26/12", "27/12"]

B. temp = [8.5, 10.5, 6.8]

C. plt.plot(date, temp)

D. plt.show()

Choose the correct answer from the options givenbelow:

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

Q9:

2026: 29 May Shift 2

Matplotlib Plotting

Easy

Informatics Practices

A __________ is used to represent numerical data proportionally.

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

Q10:

2026: 29 May Shift 2

Matplotlib Plotting

Easy

Informatics Practices

Match the LIST-I with LIST-II

LIST-ILIST-II
A.Box plotI.Shows the relationship between two variables
B.HistogramII.Uses quartiles to divide the data
C.Pie chartIII.Uses bins for representing data
D.Scatter plotIV.Uses sectors to divide the data
Answer options

Q11:

2026: 29 May Shift 2

Matplotlib Plotting

Medium

Informatics Practices

When is it appropriate to use a box plot instead of a histogram?

Answer options

Q12:

2026: 29 May Shift 2

Matplotlib Plotting

Medium

Informatics Practices

Which parameter of the box plot displays the whisker in horizontal direction?

Answer options

Q14:

2026: 29 May Shift 1

Matplotlib Plotting

Easy

Informatics Practices

Match List-I with List-II

List-IList-II
(A) plot(*args[, scalex, scaley, data])(I) A scatter plot of x versus y.
(B) scatter(x, y[, s, c, marker, cmap, norm, ...])(II) Plot a histogram.
(C) hist(x[, bins, range, density, weights, ...])(III) Plot x versus y as lines and/or markers.
(D) bar(x, height[, width, bottom, align, data])(IV) Make a bar plot.
Answer options

Q15:

2026: 29 May Shift 1

Matplotlib Plotting

Easy

Informatics Practices

Match List-I with List-II

List-IList-II
(A) matplotlib.pyplot.xlabel()(I) To build a plot
(B) matplotlib.pyplot.title()(II) To display the heading of a plot
(C) matplotlib.pyplot.show()(III) To display the figure
(D) matplotlib.pyplot.plot()(IV) To set the x label of the plot
Answer options

Q16:

2026: 29 May Shift 1

Matplotlib Plotting

Easy

Informatics Practices

Which of the following is NOT a valid graph function of matplotlib library?

Answer options

Q17:

2026: 29 May Shift 1

Matplotlib Plotting

Easy

Informatics Practices

The plot() function by default plots a _________.

Answer options

Q18:

2026: 29 May Shift 1

Matplotlib Plotting

Easy

Informatics Practices

Rohit wants to plot a 'pie' chart showing information about the planet's mass and radius. Help him to place the following statements in proper order. Assume the matplotlib and pandas library are already included in the code.

(A) AD= {'mass': [0.330, 4.87 , 5.97], 'radius': [2439.7, 6051.8, 6378.1]}

(B) df.plot(kind='pie',y='mass')

(C) df = pd.DataFrame(AD)

(D) plt.show()

Answer options

Q19:

2026: 26 May Shift 1

Matplotlib Plotting

Medium

Informatics Practices

What is the purpose of 'xticks' and 'yticks' in the pyplot?

Answer options

Q20:

2026: 26 May Shift 1

Matplotlib Plotting

Easy

Informatics Practices

Which type of graph is best suited for showing numerical data proportionally?

Answer options

Q21:

2026: 26 May Shift 1

Matplotlib Plotting

Medium

Informatics Practices

What does the upper whisker represent in boxplot?

Answer options

Q22:

2026: 26 May Shift 1

Matplotlib Plotting

Easy

Informatics Practices

A ______is any symbol that represents a data value in a line chart.

Answer options

Q23:

2026: 26 May Shift 1

Matplotlib Plotting

Easy

Informatics Practices

Match List-I with List-II

List-IList-II
(A) Pie chart(I) Sectors
(B) Histogram(II) Bins
(C) Scatter plot(III) Quartile
(D) Box plot(IV) Two variable relationship
Answer options

Q24:

2026: 26 May Shift 1

Matplotlib Plotting

Easy

Informatics Practices

A _________ is the overall window where the outputs of pyplot functions are plotted.

Answer options

Q25:

2026: 24 May Shift 1

Matplotlib Plotting

Easy

Informatics Practices

How can you save a matplotlib figure to a file?

Answer options

Q26:

2026: 24 May Shift 1

Matplotlib Plotting

Easy

Informatics Practices

Which statements are true regarding the scatter plot?

(A) Shows how two variables are correlated

(B) Summarizes categorical data

(C) Displays proportions as a whole

(D) Uses dots to represent data

Answer options

Q27:

2026: 24 May Shift 1

Matplotlib Plotting

Easy

Informatics Practices

Which of the following determines the height of each column in a histogram?

Answer options

Q28:

2026: 24 May Shift 1

Matplotlib Plotting

Easy

Informatics Practices

Which type of chart is most suitable for statistical summary, including quartiles?

Answer options

Q29:

2026: 24 May Shift 1

Matplotlib Plotting

Easy

Informatics Practices

What does the explode property in the pie chart do?

Answer options

Q30:

2026: 24 May Shift 1

Matplotlib Plotting

Easy

Informatics Practices

Match List-I with List-II

List-IList-II
(A) xticks, yticks(I) Sets the user defined markings for x and y-axis
(B) kind(II) Displayed by default associating the colours with the plotted data
(C) legend(III) A symbol representing data value
(D) marker(IV) Customizing different plot types
Answer options