Xii Practical

You might also like

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

SET A ARMY PUBLIC SCHOOL

ASC CENTRE & COLLEGE, BENGALURU


AISSCE PRACTICAL EXAMINATION 2022– 2023
Subject: INFORMATICS PRACTICES Date: 20-01-2023
Subject Code: 065 School Code: 49042
Duration: 3 hrs Max. Marks: 30

1. Programs using Pandas and Matplotlib 08 Marks


2. SQL Queries 07 Marks
3. Project Work 05 Marks
4. Practical File 05 Marks
5. Viva 05 Marks
TOTAL 30 Marks

PART A
Q1 Write a program in python to create the following dataframe named 4
“employee” storing the following details.

EName Post Salary Dt_join

101 Anil Manager 65000 2018-03-02

102 Akshay Clerk 33000 2018-05-01

103 Ajay Manager 75000 2018-09-15

104 Varun Analyst 66000 2018-04-11

Develope
105 Siddharth 60000 2018-10-12
r

106 Rajesh Clerk 35000 2018-06-12


Considering the above dataframe answer the following queries by writing
appropriate command in python pandas.
i) Display Name, Post and Salary for all employees earning more than
60000.
ii) Add a new row of your choice data.
iii) Transfer these data from dataframe to csv named employees.csv.
Q2 Write a program to plot a multi-line chart depicting the Employee Name on 4
x-axis and their corresponding Salary on y-axis, with appropriate Graph
title, x-axis title, y-axis title, legends and color etc.
PART B
Q1 Consider the following table “Performance_table” Write SQL commands for 7
the following statements.

i) Insert all the values with the data given.


ii) Display the details of the students whose math skill is less than 75.
iii) Display the details of the students who are getting a writing skill of more
than 70 in the Grade A.
iv) Display average marks of students for each grade if average mark of
reading skill >80.
v) Display the total number of student under each grade.
vi) Display the maximum and minimum rating of the reading skill.
vii) Display the details of the students in the ascending order based on
their names.
SET B ARMY PUBLIC SCHOOL
ASC CENTRE & COLLEGE, BENGALURU
AISSCE PRACTICAL EXAMINATION 2022– 2023
Subject: INFORMATICS PRACTICES Date: 20-01-2023
Subject Code: 065 School Code: 49042
Duration: 3 hrs Max. Marks: 30

6. Programs using Pandas and Matplotlib 08 Marks


7. SQL Queries 07 Marks
8. Project Work 05 Marks
9. Practical File 05 Marks
10. Viva 05 Marks
TOTAL 30 Marks

PART A
Q1 Write a program in python to create the following dataframe named “country” 4
storing the following details:

C_nam
City Bill_amt Tran_date
e

1001 Shruti Ahmedabad 9500 2010-10-01

1002 Tushar Baroda 5300 2010-01-04

1003 Jay Surat 4550 2009-03-01

1004 Sameer Ahmedabad 4000 2009-04-01

1005 Mayank Surat 8500 2008-08-05

1006 Meena Baroda 4300 2008-08-06

1007 Dhairya Ahmedabad 3000 2009-10-10

Considering the above dataframe answer the following queries by writing


appropriate command in python pandas.
i. Add a new column named discount which is 10% of their bill
amount.
ii. Add a row with row index 1008 as Rohan, Pune, 6000, 2011-04-01.
iii. Create a CSV File from the above data frame.
Q2 Write a program plot a bar chart depicting the customer name on x-axis and 4
their corresponding bill amount on y-axis, with appropriate Graph title, x-axis
title, y-axis title, gridlines and color etc.

PART B
Q1 Consider the following table “Hospital” Write SQL commands for the 7
following statements.

i) Create the table “Hospital” with the structure given.


Insert all the values with the data given.
ii) Display the name, Department, Date of Admission of the patients
whose charges is NULL.
iii) Display the details of all the patients with age more than 60.
iv) Display the total number of patients under each Department.
v) Display the total charges of all the patients.
vi) Display the details of the patients in the descending order based on
their Date of the admission.

You might also like