Data Handling using Pandas – I Class 12 Informatics Practices Exam Questions

Exam Questions Class 12

Please refer to Nationalism in India Class 12 Data Handling using Pandas – I Exam Questions provided below. These questions and answers for Class 12 Social Science have been designed based on the past trend of questions and important topics in your class 12 Social Science books. You should go through all Class 12 Data Handling using Pandas – I Important Questions provided by our teachers which will help you to get more marks in upcoming exams.

Class 12 Data Handling using Pandas – I Exam Questions Nationalism in India

Class 12 Data Handling using Pandas – I students should read and understand the important questions and answers provided below for Nationalism in India which will help them to understand all important and difficult topics.

Question: How data visualization is useful?
Answer: Data visualization can display patterns, trends, correlation, outliers using chart, graphs, pie etc that helps in decision making in business firms.

Question: What is matplotlib?
Answer: Matplotlib is a high quality plotting library of Python.

Question: Is Python useful in Data Visualization?
Answer: Python is a very powerful programming language that support Data Visualization utilities. It may be used for various business applications.

Question: What is Pyplot?
Answer: Pyplot is a collection of methods within matplotlib library of Python.

Question: How to install matplotlib in Python?
Answer: We can install matplotlib using pip command when internet is connected to our computer system.

Question: What is data visualization?
Answer: Data Visualization refers to the graphical or visual representation of information and data using visual elements like chart, graph, map etc.

Question: Is Anaconda Python required matplotlib installation?
Answer:
NO, Anaconda Python is not required to installed. When we install Anaconda Python, it install automatically.

Question: What are the ways to import pyplot in Python program?
Answer:
 import matplotlib.pyplot
or
import matplotlib.pyplot as plt
Question: Which function is used to draw line chart in Python?
Answer: plot()

Question: Which function is used to display line chart on screen in Python?
Answer: Show()

Question: Write down commands to install matplotlib in Python.
Answer: python –m pip install –u pip
python –m pip install –u matplotlib

Question: Which function is used to specify y axes label in chart?
Answer: ylabel()

Question: Which function is used to specify x axes label in chart?
Answer: xlabel()

Question: Which function is used to specify title of chart?
Answer: title()

Question: What is line chart? Write a program to draw a line chart in Python.
Answer: A line chart or line graph is a type of chart which displays information as a series of data points called markers connected by straight line segments.
# A python program to create a line chart
import matplotlib.pyplot as plt
a=[1,2,3,4,5]
b=[2,4,6,8,10]
plt.plot(a,b)
plt.show()
It shows chart like:

Data Handling using Pandas – I Class 12 Informatics Practices Exam Questions

Question: What is Bar Chart?
Answer: A Bar Chart/Graph is a graphical display of data using bars of different heights.

Question: Which function is used to draw a bar graph in Python?
Answer: bar()

Question: Which Python object can be used for data in bar graph?
Answer: List can be used for data in bar graph.

Question: Draw a line graph that shows title, x-axes label and y axes label.
Answer: import matplotlib.pyplot as plt
a=[1,2,3,4,5]
b=[2,4,6,8,10]
plt.title(“My line chart”)
plt.xlabel(“This is x axes”)
plt.ylabel(“This is y axes”)
plt.plot(a,b)
plt.show()
It will look like:

Data Handling using Pandas – I Class 12 Informatics Practices Exam Questions

Question: How to add x axes, y axes label and title of bar graph? Show with an example.
Answer: import matplotlib.pyplot as plt
x=[1,2,3,4,5]
y=[10,20,30,40,50]
plt.xlabel(“This is x axes”)
plt.ylabel(“This is y label”)
plt.title(“This is title of bar graph”)
plt.bar(xdata,ydata)
plt.show()
it will show like:

Data Handling using Pandas – I Class 12 Informatics Practices Exam Questions

Question: Draw a bar graph in Python.
Answer: import matplotlib.pyplot as plt
xdata=[1,2,3,4,5]
ydata=[10,20,30,40,50]
plt.bar(xdata,ydata)
plt.show()
it will show bar graph like:

Data Handling using Pandas – I Class 12 Informatics Practices Exam Questions

Question: What is histogram ?
Answer: Histogram is a type of graph that is widely used in Maths or in Statistics. The histogram represents the frequency of occurrence of a specific phenomenon which lie within a specific range of values, which are arranged in consecutive and fixed intervals.

Question: Which function is used to plot histogram?
Answer: matplotlib.pyplot.hist()

Question: Using which function of pyplot can you plot histograms?
Answer:
hist() function of pyplot is used to create histogram

Question:  What is the default type of histogram?
Answer: The default type of histogram is ‘bar’.

Question: Step is one of type of histogram that you can create using pyplot.
Answer: True

Question: Which of the following function is used to create histogram.
a. plt.histo() b. plt.plot() c. plt.hist() d. plt.histogram()
Answer: C – plt.hist()

Question: Which attribute of hist() function is used to draw specific type of histogram.
Answer: histtype attribute of hist() function is used to draw specific type of histogram.

Question: If we want to draw a horizontal histogram, which attribute of hist() function should be used.
Answer: Orientation attribute of hist() function is used to draw a horizontal histogram.

Question: Which module needs to import into the program to draw a histogram.
Answer: pyplot module is used to draw histogram

Question:There is no gap between the bars (bins) of histogram. (True/False)
Answer: True

Question: Write the statement to import the module into the program to draw a histogram.
Answer: import matplotlib.pyplot as plt

Question:________ is a great way to show result of continuous data.
Answer: Histogram