XII - IP - Practical - List 2023-24

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

KENDRIYA VIDYALAYA

Class XII (IP) (Session 2023-24)


Subject Name with code: (065) Informatics Practices

Details of Practical Examination


Maximum Marks: 30

Sno Area Marks

1 Program using Pandas and Matplotlib 8

2 SQL Queries 7

3 Practical file (minimum of 15 programs based on Pandas, 4 based on 5


Matplotlib and 15 SQL queries must be included)
4 Project Work (using concepts learned in class XI and XII) 5

5 Viva voce 5

TOTAL 30 M

Order of the points required in practical file:


1. AIM : means the problem which you are going to solve
2. CODING : actual code in Python (Handwritten or print out of code)
3. OUTPUT : output of the program on sample data (Handwritten or screenshot)
4. VARIABLE AND FUNCTION USED : list of variables and function used in the program
VARIABLE AND FUNCTION USED
Sno Variable / Function Name Datatype Purpose

Practical List:

Data Handling
1. Create a panda’s series from (a) Scaler Value (b) List (c) List with index (d) a dictionary of values.
2. Write a program to generate a series using a dictionary to represent month number and
month names.
3. Given the following series objects:
S1 S2
0 3 0 12
1 5 2 10
2 6 3 15
4 10 4 20
5 12 6 27
(i) What will be the result of S1 + S2? (ii) What will be the result of S1 – S2?
4. Given a Series of marks, print all the elements that are above 75 marks.
5. Consider that we have created a Series object as
>>> import pandas as pd
>>> S=pd.Series([0.45, 0.65, - 0.25, -0.85])
What will be returned by following statements?
(a) S *100 (b) S>0 (c)S1 = pd.Series(S) (d) S2=pd.Series(S1) + 3
6. Write a program to create a Data Frame Quarterly Sales where each row contains the
Quarterly Sales of TV, Fridge and AC. Show the DataFrame after deleting details of Fridge.
7. Create a data frame for examination result and display row labels, column labels data types of each
column and the dimensions
8. Filter out rows based on different criteria such as duplicate rows.
9. Importing and exporting data between pandas and CSV file.
10. Given a dataframe (df) as under:
City School
Delhi 7550
Mumbai 8700
Kolkata 9800
Chennai 8600
Write a program to print dataframe. Also display first two rows of city column and last two rows
of school column.
11. Write a program to create a DataFrame to store Roll Number, Name and Marks of five students.
Print the DataFrame and its transpose.
12. Write a program to create a DataFrame which contains RollNumber, Name, Height and weight of
05 students. Create a CSV file using this DataFrame.
13. Write a program to create a DataFrame which contains RollNumber, Name, Height and weight of
05 students. Add a column BMI (Body Mass Index) using appropriate formuls.
14. Write a program in python to create a DataFrame GARMENTS from following data and answer the
questions (i) to (v)
Color Count Price
Shirt Blue 30 1500
Tshirt Green 19 900
Bow Black 25 350
Trouser Grey 29 1100
Tie Red 65 300
(i) Display price of all garments.
(ii) Display color and price of all garments.
(iii) Display color to price of Shirt and Tshirt.
(iv) Display the total value of each garment i.e. count X price
(v) Display all Grey coloured garments.
15. Consider the DataFrame df given below. Create the df with the help of Dictionary and
perform following task
Name Year Total_Score Result
0 Anand 2020 410 Pass
1 Manish 2020 350 Pass
2 Rohit 2021 150 Fail
3 Suresh 2021 380 Pass
(i) Display Result of student whose name is “Anand”
(ii) Display details of students who are passed
(iii) Display name and Result column of df for the year 2021
(iv) Display year of Result for the student Rohit
Data Visualization
1. Given the school result data, analyses the performance of the students on different parameters, e.g
subject wise or class wise.
2. For the Data frames created in qstn 13, analyze and plot appropriate charts with title and legend.
3. Take data of your interest from an open source (e.g. data.gov.in), aggregate and summarize
it. Then plot it using different plotting functions of the Matplotlib library.
4. The data for population of country ABC and PQR is given. Show them using line chart with title,
label and legends of both axis:
Year 1960 1970 1980 1990 2000
ABC 449.48 553.57 696.35 870.13 1000.42
PQR 44.91 58.12 78.75 107.74 138.64

5. Given the school result data. Analyze the performance of the students in IP and English subject
using bar graph.

Data Management
1. Create a database XIIIP
2. Create a student table with the student id, name, gender, dateofbirth, class, section, tcstatus (y/n)
and marks as attributes where the student id is the primary key.
3. Insert the details of any 10 new student in the table earlier created.
4. Delete the details of a student whose tcstatus is ‘Y’ from the above table.
5. Print details of all students whose birth is in the month of July.
6. Use the select command to get the details of the students with marks more than 80.
7. Delete the student whose Student who secured marks less than 5
8. Show the student with marks more than 45.
9. Show the student the record of all Girls students
10. Find the min, max, sum, and average of the marks in a student marks table.
11. Show all Students whose name started with K. (Example Ketaki, Ketan etc)
12. Find the total number of records in the table student
13. Show the records of students in the ascending order of marks.
14. Find the total number of students in each section in the table (using group by)
15. Show the number of students secured marks more than 20
16. Demonstrate use of maths functions.
17. Demonstrate use of text functions.
18. Demonstrate use of datetime functions.
19. Demonstrate use of aggregate functions.
20. Demonstrate use of equi-join with two tables.
PROJECT WORK

The aim of the class project is to create tangible and useful IT application. The learner may identify
a real-world problem by exploring the environment. e.g. Students can visit shops/business places,
communities or other organizations in their localities and enquire about the functioning of the
organization, and how data are generated, stored, and managed.
The learner can take data stored in csv or database file and analyze using Python libraries and
generate appropriate charts to visualize.
Learners can use Python libraries of their choice to develop software for their school or any other
social good.
Learners should be sensitized to avoid plagiarism and violation of copyright issues while working on
projects. Teachers should take necessary measures for this. Any resources (data, image etc.) used in
the project must be suitably referenced.
The project can be done individually or in groups of 2 to 3 students. The project should be started by
students at least 6 months before the submission deadline.
The Informatics Practices (Python-DataFrame/ CSV File) Project Report must contain following and in
the same order as mentioned below
 Cover Page
 Project Certificate
 Acknowledgment
 Overview of Python and DataFrame (i.e. Pandas, Matplotlib libraries)
 Need for the Project/Synopses/Summary
 Requirements (Hardware & Software)
 Source Code (listing of all the programs prepared as part of project.)
 Output (Dumps of all the output screens)
 Shortcomings/ Limitations
 Reference (Bibliography/ Books/ Websites)
Note:
1. Index to be placed after Acknowledgment in the report but NOT to be mentioned in the
index.
2. Running project Source Code to be submitted in a CD/PD along with relevant data/csv files
3. Project CD/PD/Cover Page should be properly LABELED with
1. Class: XII
2. Section: C/D
3. Year: 2023-24
4. BOARD ROLL No.
5. Project TITLE
Basic coding required:
* Data in CSV File
* Then create dataframe from that csv file
* Front End in Python
* Functions for every task (menu driven code)
* Report/ Output from front-end
* must handle validations on data
* Any thing special, that you may implement

- End of document -

You might also like