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

Plotting Data Using Matplotlib Class 12 MCQ Questions 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
Answer:
(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
Answer:
(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
Answer:
(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
Answer:
(a) False

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

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
Answer:
(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
Answer:
(b) True

Question 7.

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

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

Question 8.

the pie( ) function tan plot multiple data series.

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

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

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
Answer:
(a) False

Question 10.

FreQuestion uency polygon is created from histogram.

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

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

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
Answer:
(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
Answer:
(d) All of the mentioned
The kind keyword argument of plot( ) accepts a handful of values for plots other than the default Line plot,

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

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
Answer:
(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
Answer:
(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
Answer:
(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
(c) Lead
(d) None of the mentioned
Answer:
(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
Answer:
(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
Answer:
(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
(b) RadViz
(c) Bootstrap
(d) None of the mentioned
Answer:
(c) Bootstrap
Resulting plots and histograms are what constitutes the bootstrap plot.

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

Question 20.

Andrews curves allow one to plot multivariate data

(a) True
(b) False
(c) Error
(d) None of these
Answer:
(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
Answer:
(a) matplotlibpyplot

Question 22.

Identify the package manager for Python packages, or modules.

(a) Matplotlib
(b) PIP
(c) plt.show( )
(d) python package
Answer:
(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
(c) Download a Package
(d) Check PIP version
Answer:
(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
Answer:
(a) List installed packages

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

Question 25.

To install matplotlib, the following function will be typed in your command prompt. What does Trepresents? Python -m pip install -U pip

(a) downloading pip to the latest version
(b) upgrading pip to the latest version
(c) removing pip
(d) upgrading matplotlib to the latest version
Answer:
(b) upgrading pip to the latest version

Question 26.

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

MCQ Questions for Class 12 Informatics Practices – Plotting Data Using Matplotlib Part 2 1
(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( )
Answer:
(a) import matplotli(b)pyplot as pit plt.plot([1,2,3),[4,5,1]) plt.show( )

Question 27.

Which key is used to run the module?

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

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

Question 28.

Identify the right type of chart using the following hints.
Hint 1: This chart is often used to visualize a trend in data over intervals of time.
Hint 2: The line in this type of chart is often drawn chronologically.

(a) Line chart
(b) Bar chart
(c) Pie chart
(d) Scatter plot
Answer:
(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
Answer:
(c) Both the statements are correct

Question 30.

Which library is the most used visulization library in python?

(a) visual
(b) matlibplot
(c) matplotlib
(d) matlab
Answer:
(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
Answer:
(a) import matplotli(b)pyplot as pit

Question 32.

which function of matplotlib can be used to create a line chart?

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

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

Question 33.

Which function can be used to export generated graph in matplotlib to png?

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

Question 34.

Which one of these is not a valid line style in matplotlib?

(a) ‘<‘
(b) ‘<‘
(c) ‘<‘
(d) ‘<‘
Answer:
(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
Answer:
(d) Circular graph

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

Question 36.

Which graph should be used if we want to show distribution of elements?

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

Question 37.

Which graph should be data?

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

Question 38.

Which method can be networkx library?

(a) shortest_path
(b) short_path
(c) shortestPath
(d) sortPath
Answer:
(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
Answer:
(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
Answer:
(a) Info graphics

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

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
Answer:
(d) i, ii

Question 42.

The most popular data visualization library in Python is:

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

Question 43.

Matplotlib allows you to create a:

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

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

Question 44.

Which of following is not a visualization under matplotlib?

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

Question 45.

Which plot displays the distribution of data based on the five number summary?

(a) Scatter plot
(b) Line plot
(c) Box plot
(d) Chart plot
Answer:
(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
Answer:
(d) import matplotli(b)pyplot as pit

Question 47.

Which of the following method will be add inside the file to display plot?

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

Question 48.

The default x.vector has the same length of y but starts with:

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

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

Question 49.

Which button will help to navigate the chart?

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

Question 50.

The different kinds of plot created using:

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

Question 51.

Which type of chart shows the relationship between a numerical variable and categorical variable?

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

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

Question 52.

Which of the following one indicates discontinuity?

(a) Histogram
(b) Pie
(c) Bar graph
(d) None of these
Answer:
(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
Answer:
(a) Data visualization

MCQ Questions for Class 12 Informatics Practices with Answers

error: Content is protected !!