This post contains Multiple Choice based Questions with answers for Data Visualization MCQ Class 12 IP. These objective questions with answers are not only helpful for those students preparing for CBSE IP Class 12 Python Plotting With Pyplot MCQ but also for all those students who are practicing and learning Python Programming specially Data Handling and Visualization using Python Matplotlib Plotting with pyplot .
You will get different categories of Questions for all the concept of Python Matplotlib Plotting with pyplot objective questions-
Assertion and Reason MCQs
Case Study Based MCQs
Find The Output Based MCQs
Concept Based MCQs
Contents
Data Visualization MCQ Class 12 IP SET-3 (Q51-Q75)
- The value of _________ chart is calculated in terms of percentage.
a. Histogram
b. Boxplot
c. Bar
d. Pie
Show Answer
d. Pie
- By default, Plot() function plots a
a. Bar chart
b. Pie chart
c. Line chart
d. Horizontal bar chart
Show Answer
c. Line chart
- Which of the following option describes a column chart?
a. Comparison in different categories of data
b. Relationship between two sets of numeric data
c. Contribution of individual values to a total value
d. Data trend over a period of time
Show Answer
a. Comparison in different categories of data
- Which of the following is not a method to create a chart using pyplot?
a. pie()
b. barh()
c. plot()
d. histg()
Show Answer
d. histg()
- To represent proportionate contribution of individual data we can use ______ chart
a. Line
b. Bar
c. Pie
d. Scatter
Show Answer
c. Pie
- Symbol which represent single data value(point) in a chart is called
a. Ticks
b. Marker
c. Title
d. Data labels
Show Answer
b. Marker
- Which of the following is best suitable chart to show data correlation?
a. Bar
b. Histogram
c. Pie
d. Scatter
Show Answer
d. Scatter
- Raju want to create scatter chart for the given data
X=[1,2,3,4]
Y= [12,23,16,28]
Help him to write correct code (important libraries are imported)
a. Plt.plot(x,y,’o’)
b. Plt.scatter(x,y)
c. Df=pd.DataFrame({‘c1’:x,’c2’:y})
Df.plot(kind=scatter,x=’c1’,y=’c2’)
d. a and b both
e. All of the above
Show Answer
e. All of the above
- Pyplot is a
a. Module
b. Library
c. Function
d. Collection
Show Answer
a. Module
- The default type of histogram is
a. Line
b. Line with bar
c. Bar
d. bar with dots
Show Answer
c. Bar
- Which of the following argument cannot used with hist()?
a. Bin
b. Width
c. Histtype
d. Cumulative
Show Answer
a. Bin
- By default hist() uses bin value of _____
a. 5
b. 10
c. 15
d. 20
Show Answer
b. 10
- Which of the following website provides data freely to download and to do data analysis for educational purpose?
a. data.gov.in
b. digitalindia.gov.in
c. data.mygov.in
d. csc.gov.in
Show Answer
a. data.gov.in
- _____ chart display only one data series at a time.
a. Line
b. Bar
c. Pie
d. Scatter
Show Answer
c. Pie
- Which of the following data summary is not included in box plot?
a. Median
b. Quartile
c. Count
d. Maximum
Show Answer
c. Count
- represents a
a. Frequency polygon
b. Histogram
c. Box plot
d. Scatter plot
Show Answer
c. Box Plot
- Box plot can be created by writing command
a. Plt.box()
b. Plt.boxplot()
c. Plt.plot(kind=’box’)
d. All of the above
Show Answer
b. Plt.boxplot()
- which of the following is correct statement to save a chart using savefig()
a. plt.savefig(“graph.png”)
b. plt.savefig(“graph.jpg”)
c. plt.savefig(“graph.pdf”)
d. plt.savefig(“graph.ppt”)
Show Answer
d. plt.savefig(“graph.ppt”)
- if the extention of file name is not given in savefig(), than file is saved with _____ extention
a. png
b. jpg
c. pdf
d. eps
Show Answer
a. png
- From the following dataset
63,65,67,69,69,70,71,71,73,74,74,75,77,77,83,85,87
Create a horizontal boxplot (important libraries are included)
a. L=[63,65,67,69,69,70,71,71,73,74,74,75,77,77,83,85,87]
plt.boxplot(L, horiz = True)
plt.show()
b. L=[63,65,67,69,69,70,71,71,73,74,74,75,77,77,83,85,87]
plt.boxplot(L, orientation = False)
plt.show()
c. L=[63,65,67,69,69,70,71,71,73,74,74,75,77,77,83,85,87]
plt.boxplot(L, vert = False)
plt.show()
d. All are correct
Show Answer
c. L=[63,65,67,69,69,70,71,71,73,74,74,75,77,77,83,85,87] plt.boxplot(L, vert = False) plt.show()
- Select the correct statement:
(i) We can specify width argument containing sequence to specify different width of the bars in bar chart
(ii) If x and y limits for a plot are not set , pyplot automatically sets the limits as per values of dataset
a. Both are true
b. Both are false
c. (i) true (ii) false
d. (i) false (ii) true
Show Answer
a. Both are true
- Write appropriate code for given chart (important libraries are already included)
a. a=[‘apple’,’banana’,’orange’,’mango’,’pinapple’,’grapes’]
b=[120,340,200,150,60,300]
plt.pie(a,b, autopct = ‘%1.1f%%’)
plt.show()
b. a=[‘apple’,’banana’,’orange’,’mango’,’pinapple’,’grapes’]
b=[120,340,200,150,60,300]
plt.pie(b,a, autopct = ‘%1.1f%%’)
plt.show()
c. a=[‘apple’,’banana’,’orange’,’mango’,’pinapple’,’grapes’]
b=[120,340,200,150,60,300]
plt.pie(b,labels = a, autopct = ‘%1.1f%%’)
plt.show()
d. a=[‘apple’,’banana’,’orange’,’mango’,’pinapple’,’grapes’]
b=[120,340,200,150,60,300]
plt.pie(a,labels = b, autopct = ‘%1.1f%%’)
plt.show()
Show Answer
c. a=['apple','banana','orange','mango','pinapple','grapes'] b=[120,340,200,150,60,300] plt.pie(b,labels = a, autopct = '%1.1f%%') plt.show()
- predict the output of given code
import pandas as pd
import matplotlib.pyplot as plt
x=[2,4,6,8]
y=[23,10,45,20]
plt.plot(y,x,color=’m’,linestyle = ‘dashed’,marker = ‘+’, markersize = 10, markeredgecolor = ‘b’)
plt.show()
a.
b.
c. No Output
d. Error
Show Answer
a.
- Which of the following is used to set the limit of x-axis of the plot?
a. Limit()
b. Limits()
c. Xlimit()
d. Xlimits()
Show Answer
d. Xlimits()
- Argument used in pie() to create wedges out from the pie chart is
a. Wedge
b. Explode
c. Slice
d. fillet
Show Answer
b. Explode