# MCQ Questions for Class 12 Informatics Practices – Plotting Data Using Matplotlib Part 2

Question 1.

## A line chart can be plotted using pyplot library’s plot( ) function.

(a) False
(b) True
(c) Error
(d) None of these
(b) True

Question 2.

## A bar chart can be plotted using pyplot library’s bar( ) function.

(a) False
(b) True
(c) Error
(d) None of these
(b) True

Question 3.

## A bar chart can be plotted using pyplot library’s barh( ) function.

(a) False
(b) True
(c) Error
(d) None of these
(b) True

Question 4.

## It is not possible to plot multiple series of values in the same bar graph.

(a) False
(b) True
(c) Error
(d) None of these
(a) False

Question 5.

## A standard marker of representing a non-number data in Python libraries is NaN.

(a) False
(b) True
(c) Error
(d) None of these
(b) True

Question 6.

## If the linestyle argument is missing along with marker style string in a plot( ), a scatter type chart get created

(a) False
(b) True
(c) Error
(d) None of these
(b) True

Question 7.

## The bar( ) function can also create horizontal bar charts.

(a) False
(b) True
(c) Error
(d) None of these
(a) False

Question 8.

## the pie( ) function tan plot multiple data series.

(a) False
(b) True
(c) Error
(d) None of these
(a) False

Question 9.

## The plot is always as per the data series being plotted irrespective of the xlim( ).

(a) False
(b) True
(c) Error
(d) None of these
(a) False

Question 10.

## FreQuestion uency polygon is created from histogram.

(a) False
(b) True
(c) Error
(d) None of the above
(b) True

Question 11.

## The plot method on Series and DataFrame is just a simple wrapper around

(a) gplt.plot( )
(b) plt.plot( )
(c) plt.plotgraph( )
(d) None of the mentioned
(b) plt.plot( )
If the index consists of dates, it calls gcf().autofmt_xdate() to try to format the x-axis nicely,

Question 12.

## Point out the correct combination with regards to kind keyword for graph plotting.

(a) ‘hist’ for histogram
(b) ‘box’ for boxplot
(c) ‘area’ for area plots
(d) All of the mentioned
(d) All of the mentioned
The kind keyword argument of plot( ) accepts a handful of values for plots other than the default Line plot,

Question 13.

## Which of the following value is provided by kind keyword for barplot?

(a) bar
(b) kde
(c) hexbin
(d) None of the mentioned
(a) bar
bar can also be used for barplot.

Question 14.

## You can create a scatter plot matrix using the ……. method in pandas.tools.plotting.

(a) sca_matrix
(b) scatter_matrix
(c) DataFrame.plot
(d) All of the mentioned
(b) scatter_matrix
You can create density plots using the Series/DataFrame. plot.

Question 15.

## Point out the wrong combination with regards to kind keyword for graph plotting.

(a) ‘scatter’ for scatter plots .
(b) ‘kde’ for hexagonal bin plots
(c) ‘pie’for pie plots
(d) None of the mentioned
(b) ‘kde’ for hexagonal bin plots kde is used for density plots.

Question 16.

## Which of the following plots are used to check if a data set or time series is random?

(a) Lag
(b) Random
(d) None of the mentioned
(a) Lag
Random data should not exhibit any structure in the lag plot.

Question 17.

## Plots may also be adorned with error bars or tables.

(a) True
(b) False
(c) Error
(d) None of these
(a) True
There are several plotting functions in pandas.tools.plotting.

Question 18.

## Which of the following plots are often used for checking randomness in time series?

(a) Autocausation
(b) Autorank
(c) Autocorrelation
(d) None of the mentioned
(c) Autocorrelation
If the time series is random, such autocorrelations should be near zero for any and all time-lag separations.

Question 19.

## ………….plots are used to visually assess the uncertainty of a statistic

(a) Lag
(c) Bootstrap
(d) None of the mentioned
(c) Bootstrap
Resulting plots and histograms are what constitutes the bootstrap plot.

Question 20.

## Andrews curves allow one to plot multivariate data

(a) True
(b) False
(c) Error
(d) None of these
(a) True
Curves belonging to samples of the same class will usually be closer together and form larger structures.

Question 21.

## Which is a python package used for 2D graphics?

(a) matplotlibpyplot
(b) matplotlibpip
(c) matplotlibnumpy
(d) matplotlibplt
(a) matplotlibpyplot

Question 22.

## Identify the package manager for Python packages, or modules.

(a) Matplotlib
(b) PIP
(c) plt.show( )
(d) python package
(b) PIP

Question 23.

## Read the following code: Identify the purpose of this code and choose the right option from the following: C:\Users\YourName\AppData\Local\Programs\Python\ Python36-32\Scripts>pip – version

(a) Check if PIP is Installed
(b) Install PIP
(d) Check PIP version
(a) Check if PIP is Installed

Question 24.

## Read the following code: Identify the purpose of this code and choose the right option from the following: C:\Users\Your Name\AppData\Local\Programs\Python\ Python36-32\Scripts>pip list

(a) List installed packages
(b) List command
(c) Install PIP
(d) Packages installed
(a) List installed packages

Question 25.

(c) removing pip

Question 26.

## Observe the output figure. Identify the coding for obtaining this output.

(a) import matplotli(b)pyplot as pit plt.plot([1,2,3], [4.5,1]) plt.show( )
(b) import matplotli(b)pyplot as pit plt.plot((1,2],[4,5]) plt.show( )
(c) import matplotli(b)pyplot as pit . plt.plot([2,3],[5,1]) plt.show( )
(d) import matplotli(b)pyplot as pit plt.plot([1,3),[4,1]) plt.show( )
(a) import matplotli(b)pyplot as pit plt.plot([1,2,3),[4,5,1]) plt.show( )

Question 27.

(a) F6
(b) F4
(c) F3
(d) F5
(d) F5

Question 28.

(a) Line chart
(b) Bar chart
(c) Pie chart
(d) Scatter plot
(a) Line chart

Question 29.

## Read the statements given below. Identify the right option from the following for pie chart: Statement A: To make a pie chart with Matplotlib, we can use the plt.pie() function. Statement B: The autopct parameter allows us to display the percentage value using the Python string formatting.

(a) Statement A is correct
(b) Statement B is correct
(c) Both the statements are correct
(d) Both the statements are wrong
(c) Both the statements are correct

Question 30.

(a) visual
(b) matlibplot
(c) matplotlib
(d) matlab
(c) matplotlib .

Question 31.

## Recommanded way to load matplotlib library is:

(a) import matplotli(b)pyplot as pit
(b) import matplotli(b)pyplot
(c) import matplotlib as pit
(d) import matplotlib
(a) import matplotli(b)pyplot as pit

Question 32.

(a) line
(b) plot
(c) graph
(d) bar
(b) plot

Question 33.

(a) savefigure
(b) savefig
(c) save
(d) export
(b) savefig

Question 34.

(a) ‘<‘
(b) ‘<‘
(c) ‘<‘
(d) ‘<‘
(d) ‘<’

Question 35.

## Which one of these is not a type of network graph?

(a) Weighted graph
(b) Directed graph
(c) Undirected graph
(d) Circular graph
(d) Circular graph

Question 36.

(a) pie
(c) bar
(d) histogram

Question 37.

(a) bar
(b) basemap
(c) scatterplots
(d) histogram
(c) scatterplots

Question 38.

## Which method can be networkx library?

(a) shortest_path
(b) short_path
(c) shortestPath
(d) sortPath
(a) shortest_path

Question 39.

## In box plot, data will be divided in how many parts?

(a) 3
(b) 4
(c) 2
(d) as many as we want
(b) 4

Question 40.

## Which of the following is the representation of information in a graphic format?

(a) Info graphics
(b) Graphics
(c) Dashboard
(d) Charts
(a) Info graphics

Question 41.

## Which of the following translate complex ideas and concepts into a simple visual format?

(i) Data visualization
(ii) Dashboards
(iii) Tables
(iv) Maps

(a) i.iii
(b) iii, i
(c) i, iv
(d) i, ii
(d) i, ii

Question 42.

(a) matplotlib
(b) pip
(c) matinfolib
(d) matpiplib
(d) matpiplib

Question 43.

## Matplotlib allows you to create a:

(a) Table
(b) Charts
(c) Maps
(d) Info graphics
(a) Table

Question 44.

(a) Scatter plot
(b) Table plot
(c) Histogram
(d) Box plot
(b) Table plot

Question 45.

(a) Scatter plot
(b) Line plot
(c) Box plot
(d) Chart plot
(c) Box plot

Question 46.

## Which of the following command is used to install matplotlib for codingt?

(a) import plt.matplotlib as plot
(b) import plot.matplotlib as pit
(c) import matplotli(b)pit as plot
(d) import matplotli(b)pyplot as pit
(d) import matplotli(b)pyplot as pit

Question 47.

(a) show ( )
(b) display ( )
(c) execute ( )
(d) plot ( )
(a) show ( )

Question 48.

(a) 3
(b) 2
(c) 1
(d) 0
(a) 3

Question 49.

(a) Navigate
(b) Pan
(c) Home
(d) Zoom
(c) Home

Question 50.

(a) Matplotlib
(b) Matplot
(c) Plotlib
(d) Matliplot
(a) Matplotlib

Question 51.

(a) line
(b) bar
(c) pie
(d) x-y plot
(b) bar

Question 52.

## Which of the following one indicates discontinuity?

(a) Histogram
(b) Pie
(c) Bar graph
(d) None of these
(c) Bar graph

Question 53.

## ………….. is the graphical representation of information and data

(a) Data visualization
(b) Data graphics
(c) Data dimension
(d) Data images