Class 12 Informatics Practices Data Visualization using Python Matplotlib MCQ’s Set 4

Plotting in Python using Matplotlib

Purpose of plotting, drawing and saving of plots using Matplotlib (line plot, bar graph, histogram). Customizing plots:- adding label, title, and legend in plots.


Data Visualization in Python – Multiple Choice Questions



Multiple Choice Questions – Set 4


61. plt.plot(x, y, ‘kh‘ linestyle = ‘solid’)

In the above statement, ‘h’ stands for which type of marker ?

a. tri_up marker

b. hexagon1 marker

c. horizontal line

d. None of these

Answer: b. hexagon 1 marker

62. plt.plot(x, y, ‘kh‘)

In the above statement, linestyle argument is not specified separately. In this case Python will only plot ___________________________.

a. the markers

b. the line

c. the markers and not the line

d. None of these

Answer: c. the markers and not the line.

63. The linewidth is specified in __________.

a. point

b. pixel

c. dot

d. None of these

Answer: b. pixel

64. The default line width is ________ showing a thin line.

a. 1 pixel

b. 2 pixel

c. 3 pixel

d. None of these

Answer: a. 1 pixel

65. The plot() function is available in ________ library.

a. pandas

b. matplotlib.pyplot

c. Both (a) and (b)

d. None of these

Answer: c. Both (a) and (b)

66. The plot( ) function of Pandas can be used to plot ________ graphs.

a. line

b. bar

c. hist

d. All of these

Answer: d. All of these

67. Which argument of the plot( ) function of Pandas, is use to specify the type of graph.

a. type

b. kind

c. category

d. All of these

Answer: b. kind

68. Which of the following is not a valid value for the ‘kind’ argument of Pandas plot() method.

a. line

b. boxh

c. bar

d. barh

Answer: b. boxh

69. Which of the following is not a valid value for the ‘kind’ argument of Pandas plot() method.

a. hist

b. box

c. circle

d. area

Answer: c. circle

70. Which of the following is not a valid value for the ‘kind’ argument of Pandas plot() method.

a. pie

b. barh

c. scatter

d. boxplot

Answer: d. boxplot

71. A ______ plot is a graph that shows the frequency of data along a number line.

a. hist

b. box

c. line

d. bar

Answer: c. line

72. _________ plot is used to show continuous dataset.

a. line

b. pie

c. hist

d. barh

Answer: a. line

73. A _________ plot is used to visualise growth or decline in data over a time interval.

a. line

b. pie

c. hist

d. barh

Answer: a. line


More MCQ’s are by 18-12-2021 11:00 pm
Keep Visiting www.mycstutorial.in
Important for Term 1 Examination


Class 12 Informatics Practices : Data Visualization – Plotting in Python MCQ’s


Class 12 Informatics Practices – Data Handling Using Pandas – I Multiple Choice Questions



Class 12 Informatics Practices Societal Impacts Multiple Choice Questions



Class 12 Informatics Practices : NCERT Exercise Solutions


You cannot copy content of this page

Scroll to Top