Practical Paper IP Sets
Practical Paper IP Sets
Q.1 Consider the following DataFrame “car” and write commands for the following. (8)
Q.2 Consider table Car and write Sql queries for questions (i) to (vii) (7)
Carno Cname Price Acceleration Rating DOP
1101 Audi 3400000 50.4 2 2021-07-31
1102 Wagner 2200000 24.2 2 2014-08-01
1103 Swift Dezire 2500000 23.2 1 2011-02-21
1104 TataNano 800000 45.4 4 2017-09-29
1105 Swift 2000000 22.7 5 2021-01-19
1106 Hyundai 2200000 25.5 1 2022-12-02
1107 Mercdez 5000000 35.7 2 2012-11-04
1108 BMW 4500000 70.5 2 2014-12-02
1109 RollsRoy 2000000 65.5 3 2019-09-27
1110 Ferrari 5500000 56.3 2 2018-12-30
i) To show length of car names,price whose acceleration is below 40.
ii) To show name,price and Dop in ascending order of Carno.
iii) To show ratings and total amount of different types of ratings.
iv) To show the no. of cars whose name contains letter ‘i’ in anywhere.
v) To show first 4 characters from car name.
vi) Remove details of car whose month of Dop is June.
vii) Show the highest and lowest price of car.
Q.1 Consider the following DataFrame “Loan” and write commands for the following. (8)
i) To show name of clients in lower case whose Loan amount is above 3000000.
ii) To show name, loan and Start date of clients in descending order of AcNo.
iii) To show rate of interest and sum of Loan Amount of different type of Interest Rates.
iv) To show the count of all clients whose name ends with letter a.
v) To show first three characters from name of clients.
vi) Remove details of clients whose loan start year is after 2015.
vii) Find the minimum and maximum Loan amount.
Practical File (5)
Project Report (5)
Viva-Voce (5)
SSCE Practical Examination 2022-23
(Informatics Practices – 065)
SET-3
Time: 3 Hours
M.M. 30
Q.1 Consider the following DataFrame “sweets” and write commands for the following. (8)
BillNo SweetName Rate Qty Paymode
1111 Rasgulla 300 1 UPI
1112 Rasmalai 450 2.5 Cash
1113 KajuKatli 950 2 Paytm
1114 Makhanbda 450 2 NetBanking
1115 Gulabjamun 350 3.5 UPI
Q.2 Consider table Sweets and write Sql queries for questions (i) to (vii) (7)
BillNo SweetName Rate Qty Paymode DOP
1111 Rasgulla 350 2 UPI 2022-11-09
1112 Rasmalai 450 1 Cash 2021-10-10
1113 KajuKatli 950 2 Cash 2022-05-28
2021-12-31
1114 Makhanbda 450 2 NetBanking
1115 Gulabjamun 350 3 Cash 2022-01-15
1116 Jalebi 200 2.5 Cash 2022-05-12
1117 Shree MakhanBhog 520 2 UPI 2021-12-20
1118 Badamhalwa 760 5 Paytm 2022-07-10
1119 Malpua 400 1 Paytm 2022-01-01
1120 Barfi 500 1 UPI 2022-09-15
i) To show bill no,name of sweets in upper case whose Qty is more than 1 k.g.
ii) To show name ,paymode and Rate in descending order of price.
iii) To show Qty and total amount of different type of qty.
iv) To count no of sweets whose sweet name start with letter ‘R’.
v) To show first 5 characters from Paymode of sweets.
vi) Remove detail of sweets whose year of buy is 2021.
vii) Find the avg and minimum rate of sweet.
Q.1 Consider the following DataFrame “Cadet” and write commands for the following. (8)
Q.2 Consider table Cadet and write Sql queries for questions (i) to (vii) (7)
Q.1 Consider the following DataFrame “articles” and write commands for the following. (8)
Code aname Price Noofitems Company
8001 Mouse 900 20 Acer
8002 USB drive 650 10 Sandisk
8003 Harddisk 11500 30 Seagate
8004 Speakers 5000 5 Sony
8005 Printer 25000 5 Perfect
i) Write python code to create above data frame.
ii) Add a column Grading with suitable values.
iii) Display name and number of items of all articles.
iv) Display first 2 rows from given data frame.
v) Change Noofitems of speakers to 4.
vi) Create bar chart representing the name and the Price of the articles.
vii) Display article name and Noofitems of 8003 to 8005 articles.
viii) Store the data in a csv file “articles.csv”
Q.2 Consider table Articles and write Sql queries for questions (i) to (vii) (7)
Q.2 Write Sql commands for questions (i) to (vii) based on table emp. (7)
Eid Ename Age Salary Address DOH
1001 Richa 48 35000 JAIPUR ROAD 2021-01-20
1002 Mehul Kumar 25 40000 CIVIL LINES 2018-12-13
1003 Tiya 28 45000 CIVIL LINES 2012-01-01
1004 Seema verma 30 40000 VIKAS VILA 2008-08-24
1005 Natasha Raheja 32 34000 CIVIL LINES 2011-03-07
1006 Jayesh Gupta 45 35000 JAIPUR ROAD 2015-04-01
1007 Hitesh Jain 25 40000 CIVIL LINES 2019-04-04
1008 Mahesh Sharma 40 20000 JANAK PURI 2017-01-01
1009 Naresh Ahuja 35 45000 JAIPUR ROAD 2019-03-04
1010 Geetika Shah 30 30000 CIVIL LINES 2021-02-02
Q.2 Consider table Item and write Sql queries for questions (i) to (vii) (7)
Q.1 Consider the following DataFrame “choco” and write commands for the following. (8)
Q.2 Consider table Choco and write Sql queries for questions (i) to (vii) (7)