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

Q1:

2025: 15 May Shift 2

Matplotlib Plotting

Easy

Informatics Practices

Match List-I with List-II

List-IList-II
(A) ylabel( )(I) To display the graph
(B) title( )(II) To set the heading of the graph
(C) show( )(III) To set or get the current ticks location and labels
(D) ticks( )(IV) To set the title of y axes
Answer options
Option 3
Correct Answer
Explanation for 2025: 15 May Shift 2 CSE question 1

Q2:

2025: 15 May Shift 2

Matplotlib Plotting

Easy

Informatics Practices

Arrange the following statements in proper order to plot the bar graph.

(A) plt.show()

(B) plt.savefig()

(C) import matplotlib.pyplot as plt

(D) plt.bar(['a','b','c','d'],[200,400,100,900])

Answer options
Option 4
Correct Answer
Explanation for 2025: 15 May Shift 2 CSE question 2

Q3:

2025: 15 May Shift 2

Matplotlib Plotting

Medium

Informatics Practices

In matplotlib, the line chart can take which of the following options as line style?

(A) soliddashed

(B) dashed

(C) dotted

(D) solid

(E) dashdot

Answer options
Option 1
Correct Answer
Explanation for 2025: 15 May Shift 2 CSE question 3

Q4:

2025: 14 May Shift 1

Matplotlib Plotting

Easy

Informatics Practices

Match List-I with List-II

List-IList-II
(A) color='red'(I) changes line style
(B) linestyle='_ _'(II) changes color of line
(C) width=0.5(III) adds a title
(D) plt.legend()(IV) changes width of the bar
Answer options
Option 3
Correct Answer
Explanation for 2025: 14 May Shift 1 CSE question 4

Q5:

2025: 14 May Shift 1

Matplotlib Plotting

Easy

Informatics Practices

A ________ is the visual representation of the statistical summary of a given dataset.

Answer options
Option 1
Correct Answer
Explanation for 2025: 14 May Shift 1 CSE question 5

Q6:

2025: 14 May Shift 1

Matplotlib Plotting

Easy

Informatics Practices

Which of the following is used to add gridlines to the background of a plot?

Answer options
Option 1
Correct Answer
Explanation for 2025: 14 May Shift 1 CSE question 6

Q7:

2025: 14 May Shift 1

Matplotlib Plotting

Easy

Informatics Practices

Matplotlib is used in python for___________.

Answer options
Option 2
Correct Answer
Explanation for 2025: 14 May Shift 1 CSE question 7

Q8:

2025: 14 May Shift 1

Matplotlib Plotting

Easy

Informatics Practices

____________ are the measures which divide the data into four equal parts, and each part contains an equal number of observations.

Answer options
Option 4
Correct Answer
Explanation for 2025: 14 May Shift 1 CSE question 8

Q9:

2025: 13 May Shift 2

Matplotlib Plotting

Easy

Informatics Practices

_______ in matplotlib also known as correlation plot, because they show how two variables are related.

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

Q10:

2025: 13 May Shift 2

Matplotlib Plotting

Easy

Informatics Practices

Given the following statement:

import matplotlib.pyplot as plt

'plt' in the above statement is ___ name.

Answer options

Q11:

2025: 13 May Shift 2

Matplotlib Plotting

Easy

Informatics Practices

How can you save a matplotlib plot as a file?

Answer options

Q12:

2025: 13 May Shift 2

Matplotlib Plotting

Easy

Informatics Practices

Given the following code for histogram:

df.plot(kind='hist', edgecolor="Green", linewidth=2, linestyle=':', fill=False, hatch='o')

What is role of fill=False?

Answer options

Q13:

2025: 13 May Shift 2

Matplotlib Plotting

Easy

Informatics Practices

Matplotlib library can be installed using pip command. Identify the correct syntax from the following options.

Answer options

Q14:

2025: 13 May Shift 2

Matplotlib Plotting

Medium

Informatics Practices

The plot function of pandas matplotlib uses 'kind' argument which can accept a string indicating the type of graph to be plotted. Which of the following are valid plots?

(A) Area

(B) Box

(C) Scatter

(D) Line

Answer options