0% found this document useful (0 votes)
5 views

1. Model Practical Examination 2024-25 Python Pandas QP

The document outlines the Senior Secondary Certificate Practical Examination for Informatics Practices for the academic year 2024-25, detailing the exam structure, maximum marks, and specific programming tasks using Python Pandas and Matplotlib. It includes various exercises such as creating series and data frames, manipulating data, and visualizing data through charts and graphs. The examination is scheduled for January 8, 2025, and consists of practical coding tasks worth a total of 30 marks.

Uploaded by

ajmaldheen04
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

1. Model Practical Examination 2024-25 Python Pandas QP

The document outlines the Senior Secondary Certificate Practical Examination for Informatics Practices for the academic year 2024-25, detailing the exam structure, maximum marks, and specific programming tasks using Python Pandas and Matplotlib. It includes various exercises such as creating series and data frames, manipulating data, and visualizing data through charts and graphs. The examination is scheduled for January 8, 2025, and consists of practical coding tasks worth a total of 30 marks.

Uploaded by

ajmaldheen04
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

SENIOR SECONDARY CERTIFICATE PRACTICAL EXAMINATION 2024-25

INFORMATICS PRACTICES (065)


School Code: 76199
Class XII Maximum Marks:30
Day and Date of Examination: Monday (8/01/2025) Duration: 3 hours

I PROGRAM USING PYTHON PANDAS 5 Marks


1 Consider the given set of data with the following structure.
NAME MARKS
Shruti 80
Renu 60
Rinku 89
Nidhi 90
Tinku 78
Vidooshi 82
Rohit 99

a. Create a series with Name as index and Mark as value from the given data set.
b. Display the records of those students who have scored marks greater than 85.
c. Display the records of those student who have scored marks less than or equal
to 80.
d. Increase the mark by 10 whose name is “Renu”.

2 Create a series to store the amount of sales made by a salesperson for the last year
(whole months).
a. Display the sales amount which is greater than 10000.
b. Display the sales amount in the first four months.
c. Display the sales amount in the last four months.

3 Consider a Series object that stores the charity contribution (in Rs) of each section of a
school as shown below:
XII A 6000
XII B 7800
XII C 6540
XII D 7890
XII E 6890
XII F 7000

Write code to:


a. Modify the amount of section „XII A‟ as 7600 and for sections „XII C‟ and
„XII D‟ as 7000 and print the Series.
b. Display the first 3 elements (use slicing)
c. Display the last 3 elements.(use slicing)
d. Display Third and Fourth elements(using iloc)
4 a. Object1 Population stores the details of population in four Metro cities of
India.
b. Object2 Avgincome stores the total average income reported in previous
year in each of these metro cities.
c. Calculate Per Capital Income for each of these metro cities.
[Hint: percapita income=average income/population]

5 DataFrame is already created here. You have to write the code for the questions
mentioned below.

import pandas as pd
data = {'name': ['James', 'Anna', 'Janet', 'Yogi', 'Robin', 'Amal', 'Mohan'],
'city': ['Mexico City', 'Toronto', 'Prague', 'Shanghai','Manchester', 'Cairo
', 'Osaka'], 'age': [41, 28, 33, 34, 38, 31, 37],'score': [88.0, 79.0, 81.0,
80.0, 68.0, 61.0, 84.0]}
row_labels = [101, 102, 103, 104, 105, 106, 107]
df = pd.DataFrame(data=data, index=row_labels)
print(df)

i. Display the city of all the students.


ii. Display the city, age and score of all the students.
iii. Display the details of the student 103
iv. Display the details of the students 104 to 107
v. Display the city in which Robin lives.

6 Create a data frame using a dictionary with the given data and index:

'2020':[256,452,635,965],
'2021':[745,785,478,547],
'2022':[452,474,725,854],
'2023':[1021,958,528,425]
Index is ['Qtr1','Qtr2','Qtr3','Qtr4']

Find the following:

i. Display the DataFrame


ii. Sales of 2022
iii. Sales in quarter2
iv. Sales in 2020,2021 and 2022for quarter 1 &2

7 Consider the given DataFrame Employee to store the details of 4 employees.


Employee number should be the index. Columns should be Employee Name,
Department and Salary.

i=[101,102,103,104]
s={'Employee name':['Amra','Ann','Elsa','Rajeesh'],
'Department':['HR','Intern','Manager','CEO'],
'Salary':[35000,12000,89000,100000]}

Use the above DataFrame to display the following


i. To fetch the index‟s name
ii. To display the column‟s name of the DataFrame
iii. To fetch both index and columns names
iv. To display the number of rows and columns. ie, shape of the DataFrame
v. To fetch the size of the DataFrame

II PROGRAMS USING MATPLOTLIB 3 marks


8 Plot a line chart for depicting the population for the last 5 years as per the
specifications given below.

1. x-axis title is "Years"


2. y-axis title is "Population"
3. Chart tile is "Population of 5 years"
4. The line color is red of type dotted
5. Marker type is diamond with a size of 5 in blue color

9 Charity Collection of Class XII for the month of June is as follows.

a. Create a DataFrame df with the above data.


b. Plot a bar graph for data stored in the DataFrame.
10 Given the following set of data:
Weight measurements for 14 values of muffins (in grams).
78,72,69,81,63,67,65, 79,74,71,83,71,79,80
a. Create a simple histogram from the above data

11 Given the following set of data:


Weight measurements for 14 values of muffins (in grams).
78,72,69,81,63,67,65, 79,74,71,83,71,79,80
a. Create a horizontal histogram from the above data.

You might also like