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

Q1:

2026: 23 May Shift 2

Matplotlib Plotting

Easy

Informatics Practices

Arrange the query in the order of their execution.

A. Use plt.bar() with the bottom parameter for subsequent bars

B. Plot the first bar using plt.bar()

C. import matplotlib.pyplot as plt

D. Label the axes and add a title

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

Q2:

2026: 23 May Shift 2

Matplotlib Plotting

Medium

Informatics Practices

In a box plot, what do the "whiskers" represent?

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

Q3:

2026: 23 May Shift 2

Matplotlib Plotting

Easy

Informatics Practices

Continuous data are _______ while discrete data are obtained by ________.

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

Q4:

2026: 23 May Shift 2

Matplotlib Plotting

Easy

Informatics Practices

Which graph converts the continuous data into intervals using bins?

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

Q5:

2026: 23 May Shift 2

Matplotlib Plotting

Easy

Informatics Practices

_______________ is a type of graph in which a circle is divided into different sectors and each sector represents a part of the whole.

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

Q6:

2026: 23 May Shift 2

Matplotlib Plotting

Medium

Informatics Practices

Which statements about line plots are true?

A. They are suitable for time-series data.

B. They require continuous variables on both axes.

C. They can display multiple lines with different colors.

D. They show relationships between two variables.

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

Q7:

2026: 23 May Shift 1

Matplotlib Plotting

Easy

Informatics Practices

To show a forecast of a stock performance throughout the year, which plot is most suitable?

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

Q8:

2026: 23 May Shift 1

Matplotlib Plotting

Easy

Informatics Practices

Which property can be used to fill to each hist with pattern in histogram?

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

Q9:

2026: 23 May Shift 1

Matplotlib Plotting

Medium

Informatics Practices

What does a left-skewed histogram indicate?

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

Q10:

2026: 23 May Shift 1

Matplotlib Plotting

Easy

Informatics Practices

How can you display percentage values inside a pie chart in Matplotlib?

Answer options

Q11:

2026: 23 May Shift 1

Matplotlib Plotting

Easy

Informatics Practices

Which attribute is added to display whisker in horizontal direction in the boxplot?

Answer options

Q12:

2026: 23 May Shift 1

Matplotlib Plotting

Medium

Informatics Practices

In case of plots in Python, Marker "3" describes _______________.

Answer options

Q13:

2026: 21 May Shift 1

Matplotlib Plotting

Easy

Informatics Practices

Pandas has a built in .plot() function as a part of the ____________ class.

Answer options

Q14:

2026: 21 May Shift 1

Matplotlib Plotting

Medium

Informatics Practices

Match List-I with List-II

List-IList-II
MarkerDescription
(A) ","(I) tri_up
(B) "2"(II) Circle
(C) "^"(III) Pixel
(D) "o"(IV) triangle_up
Answer options

Q15:

2026: 21 May Shift 1

Matplotlib Plotting

Easy

Informatics Practices

________ is used to represent numerical data proportionally.

Answer options

Q16:

2026: 21 May Shift 1

Matplotlib Plotting

Easy

Informatics Practices

import matplotlib.pyplot as plt

In the above statement 'plt' is ________

Answer options

Q17:

2026: 21 May Shift 1

Matplotlib Plotting

Easy

Informatics Practices

Which of the following are components of a plot?

(A) Legend

(B) Ticks

(C) Title

(D) xlabel

Answer options

Q18:

2026: 20 May Shift 1

Matplotlib Plotting

Easy

Informatics Practices

The height of each column in the histogram is proportional to the ___________ its bin contains.

Answer options

Q19:

2026: 20 May Shift 1

Matplotlib Plotting

Easy

Informatics Practices

The _________ is used to represent the data values in the line chart and is also a parameter of the plot() function.

Answer options

Q20:

2026: 20 May Shift 1

Matplotlib Plotting

Easy

Informatics Practices

A _______ is used to show growth or decline in data over a time interval.

Answer options

Q21:

2026: 20 May Shift 1

Matplotlib Plotting

Easy

Informatics Practices

Outliers are referred to values that are greater than ___________.

Answer options

Q22:

2026: 20 May Shift 1

Matplotlib Plotting

Easy

Informatics Practices

If the data needed for ticks is taken from an index of a DataFrame 'df', then which of the following command is needed?

Answer options

Q23:

2026: 20 May Shift 1

Matplotlib Plotting

Easy

Informatics Practices

We can display the whisker in a box plot, in the horizontal direction by adding a parameter _________ .

Answer options

Q24:

2026: 19 May Shift 1

Matplotlib Plotting

Easy

Informatics Practices

Which Python library is used for generating charts and graphs?

Answer options

Q25:

2026: 19 May Shift 1

Matplotlib Plotting

Easy

Informatics Practices

Which of the following is used to visualize growth or decline in data over a time interval?

Answer options

Q26:

2026: 19 May Shift 1

Matplotlib Plotting

Medium

Informatics Practices

Consider the python code as follows:

import matplotlib.pyplot as plt

import pandas as pd

height=[121.9,124.5,129.5,134.6,139.7,147.3,152.4,157.5,162.6]

weight=[19.7,21.3,23.5,25.9,28.5,32.1,35.7,39.6,43.2]

df=pd.DataFrame({"height":height,"weight":weight})

plt.xlabel('Weight in kg')

plt.ylabel('Height in cm')

plt.plot(df.weight,df.height,marker='*',markersize=10)

plt.show()

Which of the chart will be displayed as output?

Answer options

Q27:

2026: 19 May Shift 1

Matplotlib Plotting

Easy

Informatics Practices

Which command is used to label the x-axis and y-axis of the plot?

Answer options

Q28:

2026: 19 May Shift 1

Matplotlib Plotting

Easy

Informatics Practices

Which plot does the following figure show?

Figure

Answer options

Q29:

2026: 19 May Shift 1

Matplotlib Plotting

Easy

Informatics Practices

Which of the following commands is used to plot horizontal bar?

Answer options

Q30:

2026: 18 May Shift 2

Matplotlib Plotting

Easy

Informatics Practices

The parameter hatch in df.plot(kind = 'hist', hatch ='o') is used for _________.

Answer options