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

AISSCE

PRACTICAL EXAMINATION -2023


SUBJECT: INFORMACTICS PRACTICES 065
SET-1
TIME: 3 HR MM:30

MARKS DISTRIBUTION

SNO TOPIC MARKS


1 PROGRAM USING PANDAS AND MATPLOTLIB 8
2 SQL QUERIES 7
3 PRACTICAL FILE 5
4 PROJECT FILE 5
5 VIVA VOCE 5
TOTAL 30
PART-1 PROGRAM USING PANDAS AND MATPLOTLIB
1. 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. [4]
2. ABC Enterprises is selling its products through three salesmen and keeping the records of sales done
quarterly of each salesman as shown below: [4]
Quarter 1 Quarter 2 Quarter 3 Quarter 4
Salesman 1 23000 18000 30000 35000
Salesman 2 11000 15000 20000 22000
Salesman 3 60000 40000 35000 55000
Company is storing the above information in a CSV file “Qtrly_Sales.csv”. Mr. Rohit is a programmer.
Company has given him the responsibility to create the program to visualise the above data. Write a
program to plot a histogram from above data with 20 bins

PART-2 SQL QUERIES


3. Write SQL commands on the basis of the following tables. [7]
Table: PROUDCT

PID Productname Manufacturer Price


TP01 Talcum Powder LAK 40
FW05 Face Wash ABC 45
BS01 Bath Soap ABC 55
SH06 Shampoo XYZ 120
FW12 Face Wash XYZ 95

Display details of those products whose manufacturere is ″ABC″.


a) Display details of Products whose price is in range of 50 to 100.
b) Display Product Name and Price from table Product where product name starts with ″B″.
c) Increase the price of all products by 10.
d) Display details of products in ascending order of price.
e) Display Product Name and Price from table Product where product name end with “h”.
f) Change the name of Manufacturer as PQR whose ID is BS01.
3. PRACTICAL FILE [5]
4. PROJECT FILE [5]
5. VIVA VOCE [5]

EXTERNAL EXAMINER INTERNAL EXAMINER


AISSCE
PRACTICAL EXAMINATION -2023
SUBJECT: INFORMACTICS PRACTICES 065
SET-2
TIME: 3 HR MM:30

MARKS DISTRIBUTION

SNO TOPIC MARKS


1 PROGRAM USING PANDAS AND MATPLOTLIB 8
2 SQL QUERIES 7
3 PRACTICAL FILE 5
4 PROJECT FILE 5
5 VIVA VOCE 5
TOTAL 30
PART-1 PROGRAM USING PANDAS AND MATPLOTLIB
1. Write a program to create a Data Frame Quarterly Sales where each row contains the Quarterly Sales
of PRINTER , UPS and MONITOR . Show the DataFrame after deleting details of PRINTER.

2. An analysis has been done in the school to identify hobby of Students as given below.
Hobby Music Dance Games Reading Drawing
Number of Students 130 150 180 75 160
Represent this data on the Pie Chart . Slice colour must be pink,green,blue,gold and light sky blue PART-
2 SQL QUERIES

3. Consider the following tables HOSPITAL. Write SQL commands for the following questions:
No Name Age Department Dateofadmin Charge Sex
1 Arpit 62 Surgery 21-01-2006 300 M
2 Zayana 18 ENT 12-12-2005 250 F
3 Kareem 68 Orthopedic 19-02-2006 450 M
4 Abhilash 26 Surgery 24-11-2006 300 M
5 Dhanya 24 ENT 20-10-2006 350 F
6 Siju 23 Cardiology 10-10-2006 800 M
7 Ankita 16 ENT 13-04-2006 100 F
8 Divya 20 Cardiology 10-11-2006 500 F
9 Nidhin 25 Orthopedic 12-05-2006 700 M
10 Hari 28 Surgery 19-03-2006 450 M

a) To show all information about the patients whose names are having six characters only.
b) To reduce Rs. 200 from the charge of female patients who are in Cardiology department.
c) To insert a new row in the above table with the following data :
a. 11, „Rakesh‟, 45, ″ENT″, {08/08/08}, 1200, „M‟ .
d) To remove the rows from the above table where age of the patient > 60.
e) Increase the charge of all department by 100.
f) Display details of department in ascending order of charge.
g) Change the name of department as cardiology whose age is 16.

3. PRACTICAL FILE [5]


4. PROJECT FILE [5]
5. VIVA VOCE [5]

EXTERNAL EXAMINER INTERNAL EXAMINER


AISSCE
PRACTICAL EXAMINATION -2023
SUBJECT: INFORMACTICS PRACTICES 065
SET-3
TIME: 3 HR MM:30
MARKS DISTRIBUTION

SNO TOPIC MARKS


1 PROGRAM USING PANDAS AND MATPLOTLIB 8
2 SQL QUERIES 7
3 PRACTICAL FILE 5
4 PROJECT FILE 5
5 VIVA VOCE 5
TOTAL 30
PART-1 PROGRAM USING PANDAS AND MATPLOTLIB
1. Write a program to create a dataframe salesman using the series sales_person which stored
salesman names and quantity of sales of August. [4]

2. A survey gathers height and weight of 60 participants and recorded the participants’ ages as:
Ages = [1,1,2,3,5,7,8,9,10,10,11,13,13,15,16,17,18,19,20,21,21,23,24,24,24,25,25 ,
25,25,26,26,26,27,27,27,27,27,29,30,30,30,30,31,33,34,34,34,35,36,36,37 ,37,37,3
8,38,39,40,40,41,41]
Write a program to plot a histogram from above data with 20 bins. [4]

PART-2 SQL QUERIES


3.Based on table STUDENT given here, write suitable SQL queries for the following:

a) To show all information about the student whose city re having six characters only.
b) Display details of those students whose class is ″XII″.
c) Display name of students and class whose marks is in range of 350 to 400.
d) To remove the rows from the above table where marks is less than 250.
e) Display details of students in descending order of marks
f) Change the name of city as INDORE whose marks is 256
g) Display total number of male and female students.

3. PRACTICAL FILE [5]


4. PROJECT FILE [5]
5. VIVA VOCE [5]

EXTERNAL EXAMINER INTERNAL EXAMINER


AISSCE
PRACTICAL EXAMINATION -2023
SUBJECT: INFORMACTICS PRACTICES 065
SET-4
TIME: 3 HR MM:30
MARKS DISTRIBUTION

SNO TOPIC MARKS


1 PROGRAM USING PANDAS AND MATPLOTLIB 8
2 SQL QUERIES 7
3 PRACTICAL FILE 5
4 PROJECT FILE 5
5 VIVA VOCE 5
TOTAL 30
PART-1 PROGRAM USING PANDAS AND MATPLOTLIB
1. Write a program to create dataframe for 3 student including name and roll numbers. and add new
columns for 5 subjects and 1 column to calculate percentage. It should include random numbers in
marks of all subjects [4]
2. The table shows passenger car fuel rates in miles per gallon for several years. Make a LINE GRAPH
of the data. During which 2-year period did the fuel rate decrease? [4]
YEAR: 2000 2002 2004 2006
RATE: 21.0 20.7 21.2 21.6
PART-2 SQL QUERIES
3. Based on table STUDENT given here, write suitable SQL queries for the following:

COACH
COACH NAME AGE SPORTS DATOFAPP PAY SEX
ID
1 KUNAL 36 KARATE 27-03-1996 4000 M
2 RAVINA 34 KARATE 20-01-1998 4200 F
3 KARAN 34 SQUASH 19-02-1998 5000 M
4 TARUN 33 BASKET BALL 01-01-1998 2500 M
5 ZUBIN 36 SWIMMING 12-01-1997 3000 M
6 KANAKA 35 SWIMMING 24-02-1997 2750 F

a) To display all information about the female coaches.


b) To display ID, name and age of all coaches whose age is greater than 35
c) To display the ID, name and age of all coaches whose names start with ‘K’
d) To display the names of and sport of coaches whose DATOFAPP is between
‘1997-02-01’ and ‘1998-02-01'
e) To increase the pay of all the coaches by 750 whose pay is less than 3000
f) To change the field COACHNAME to CNAME
g) To display the total payment and number of coaches in each sport.
3. PRACTICAL FILE [5]
4. PROJECT FILE [5]
5. VIVA VOCE [5]

EXTERNAL EXAMINER INTERNAL EXAMINER


AISSCE
PRACTICAL EXAMINATION -2023
SUBJECT: INFORMACTICS PRACTICES 065
SET-5
TIME: 3 HR MM:30

MARKS DISTRIBUTION
SNO TOPIC MARKS
1 PROGRAM USING PANDAS AND MATPLOTLIB 8
2 SQL QUERIES 7
3 PRACTICAL FILE 5
4 PROJECT FILE 5
5 VIVA VOCE 5
TOTAL 30
PART-1 PROGRAM USING PANDAS AND MATPLOTLIB
1. Write a Pandas program to select the name of persons whose height is between 5 to 5.5 (both values
inclusive) 'name': ['Asha', 'Radha', 'Kamal', 'Divy', 'Anjali'],
'height': [ 5.5, 5, np.nan, 5.9, np.nan],
'age': [11, 23, 22, 33, 22] [4]
2. Write a program to plot a bar chart from the medals won by four countries. Make sure that bars are
separately visible with title and legend. [4]
PART-2 SQL QUERIES
3. Based on table LOAN given here, write suitable SQL queries for the following: [7]

NO NAME LOAN AMT INST RATE DATE


1 R.K. Gupta 300000 36 12 19-07-2009
2 S.P. Sharma 500000 48 10 22-03-2008
3 K.P. Jain 300000 36 NULL 08-03-2007
4 M.P. Yadav 800000 60 10 06-12-2008
5 S.P. Sinha 200000 36 12.5 03-01-2010
6 P. Sharma 700000 60 12.5 05-06-2008
7 K.S. Dhall 500000 48 NULL 05-03-2008

a) Display the details of all the loans with less than 40 instalments.
b) Display the amounts of various loans from the table Loan_Accounts. A loan amount
should appear only once.
c) Display the details of all the loans whose Loan_Amount is in the range 400000 to
500000.
d) Display the AccNo, Cust_Name, and Loan_Amount for all the loans for which the
Cust_Name ends with 'Sharma'.
e) Display the details of all the loans in the ascending order of their Loan_Amount.
f) Delete the records of all the loans whose start date is before 2007.
g) increase the interest rate by 0.5% for all the loans for which the loan amount is more
than 400000.
3. PRACTICAL FILE [5]
4. PROJECT FILE [5]
5. VIVA VOCE [5]

EXTERNAL EXAMINER INTERNAL EXAMINER

You might also like