Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Ip Exam 2

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Class 12

Informatics Practices
Exam 3 MaxMarks :20
Questions 1 to 10 carries 1 mark each,
Questions 11 and 12 carries 3 marks each
Question 13 carries 4 marks
1. Write the name of module used for data visualization in python?
2. What is the use of xticks () in plotting ?
3. Which argument must be set with plotting functions for legend( ) to display the
legends?
(A) data (B) label (c) xlabel. (d) grid
4. Which of the following function is used to save a plot to disk?
(A) save( ) (B) figsave( ) (C) savefig( ) (D) SaveFig( )
5. Write a python statement to import package for plotting charts in python?
6. Statement1: There is a difference between histogram and bar chart
Statement2: Bydefault, the bars in a histogram will be separated by a different color
(A) Statement 1 is True, but Statement2 is False
(B) Statement 2 is True, but Statement1 is False
(C) Both Statements are True
(D) Both Statements are False
7. Which argument is used to change the color of the border of bars in Histogram?
(A) edgecolor (B) color (C) colour (D) barcolor
8. What is the purpose of a legend?
9. Write the name of plot which are column-charts, where each column represents a
range of values, and the height of a column corresponds to how many values are in
that range in python?
10. The numerical data shown by the number of data points that fall within a particular
range in a histogram is called _______.
11. Represent the following data on a line chart:

Day Monday Tuesday Wednesday Thursday Friday


Income 510 350 475 580 600
i. Write a title for the chart “The Weekly Income Report”.
ii. Write the appropriate titles of both the axes.
iii. Write code to Display legends.
iv. Display red color for the line.
v. Use the line style – dashed
vi. Display diamond style markers on data points
12. Mr. .Shyam owns a garden with 30 black cherry trees. Each tree is of a different
height. The height of the trees (in inches): 61, 63, 64, 66, 68, 69, 71, 71.5, 72, 72.5, 73,
73.5, 74, 74.5, 76, 76.2, 76.5, 77, 77.5, 78, 78.5, 79, 79.2, 80, 81, 82, 83, 84, 85, 87.
Create a simple horizontal histogram from the above data.
Set x label as Height and y label as frequency
Title as Trees frequency distribution denoted using histogram
13. Observe the given data for monthly views of one of the youtube channels for 6
months. Plot them in a Barnhart.

Month January February March April May June


Views 2500 2100 1700 3500 3000 3800
Likes 30000 54000 12000 17000 24000 55900
Apply following customizations to the chart:

i. Give the title for the chart – “Youtube Stats”


ii. Use the “Month” label for X-Axis and “Views/likes” for Y-Axis.
iii. Display legends.
iv. Use 0.5 width
v. Use seperate colour for both charts

You might also like