Please refer to MCQ Questions Chapter 4 Plotting Data using Matplotlib Class 12 Informatics Practices with answers provided below. These multiple-choice questions have been developed based on the latest NCERT book for class 12 Informatics Practices issued for the current academic year. We have provided MCQ Questions for Class 12 Informatics Practices for all chapters on our website. Students should learn the objective based questions for Chapter 4 Plotting Data using Matplotlib in Class 12 Informatics Practices provided below to get more marks in exams.
Chapter 4 Plotting Data using Matplotlib MCQ Questions
Please refer to the following Chapter 4 Plotting Data using Matplotlib MCQ Questions Class 12 Informatics Practices with solutions for all important topics in the chapter.
Question. Name of the figure is passed to the ________________ function as parameter.
(a) plot( )
(b) show( )
(c) savefig( )
(d) None of the above
Answer
C
Question. Which of the following chart element is used to identify data series by its color patterns?
(a) Chart title
(b) Legend
(c) Marker
(d) Data labels
Answer
B
Question. Which of the following is correct syntax to create histogram with bins specified?
(a) Plt.hist(x, bins=10)
(b) Plt.hist(x,bins = [10,11,12,13,14])
(c) Plt.hist(x, bins = range(10,15))
(d) All are correct
Answer
D
Question. Which attribute is used to fill each hist with pattern in histogram?
(a) pattern
(b) fill
(c) hatch
(d) color
Answer
C
Question. Symbol which represent single data value(point) in a chart is called
(a) Ticks
(b) Marker
(c) Title
(d) Data labels
Answer
B
Question. Which of the following plotting functions does not plot multiple data series?
(a) plot()
(b) bar()
(c) pie()
(d) barh()
Answer
C
Question. Write a statement, to show a grid on the plot. [ import matplotli(b)pyplot as plt #assume import statement is written ]
(a) plt.grid( )
(b) plt.grid(True)
(c) grid(True)
(d) None of these
Answer
B
Question. The plot() function is available in ________ library.
(a) pandas
(b) matplotli(b)pyplot
(c) Both (a) and (b)
(d) None of these
Answer
C
Question. Matplotlib is _____ plotting library
(a) 1D
(b) 2D
(c) 3D
(d) All of above
Answer
B
Question. Data visualization helps to
(a) Understand data easily
(b) Take a decisions
(c) Improve the past performance
(d) All of these
Answer
D
Question. To view changes in data over a period of time we can use ________ chart.
(a) Line
(b) Bar
(c) Histogram
(d) Pie
Answer
A
Question. In which of the installation matplotlib is already present?
(a) Standard official distribution
(b) installed python using Anaconda
(c) installed python using king cobra
(d) installed python using c++
Answer
B
Question. Which one is the valid statement to invoke the plot() function?
(a) plot(x, y)
(b) pyplot.plot(x,y)
(c) matplotli(b)pyplot.plot(x,y)
(d) None of these
Answer
C
Question. Which of the following is not a valid value for the ‘kind’ argument of Pandas plot() metho(d)
(a) pie
(b) barh
(c) scatter
(d) boxplot
Answer
D
Question. Statement to plot a line chart for data stored in a DataFrame ‘df’ is _____
(a) df.plot(line)
(b) plot(df, line)
(c) df.plot(kind = “line”)
(d) None of the above
Answer
C
Question. Which of the following functions is used to create a line chart?
(a) line()
(b) plot()
(c) chart()
(d) plotline()
Answer
B
Question. Which of the following is component of histogram represents bins?
(a) Height and width of bars
(b) Title
(c) Axis
(d) Data
Answer
A
Question. find the output.
import numpy as np
arr6=np.arrange(1,7,2,np.float32)
(a) [1.,3.,5.]
(b) [1,2,3]
(c) [5,3,1]
(d) [2,3,6]
Answer
A
Question. Which of the following correct statement to import pyplot module?
(a) import matplotli(b)pyplot
(b) import MatPlotLi(b)PyPlot
(c) import PyPlot as pl
(d) import pyplot.plot
Answer
A
Question. The datapoints plotted on a graph are called _____.
(a) points
(b) pointers
(c) marks
(d) markers
Answer
D
Question. Which of the following is/are correct statement for plot method?
(a) pl.plot(x,y,color,others)
(b) pl.plot(x,y)
(c) pl.plot(x,y,color)
(d) all of these
Answer
D