0% found this document useful (0 votes)
83 views10 pages

Practical Paper IP Sets

Practical paper of IP

Uploaded by

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

Practical Paper IP Sets

Practical paper of IP

Uploaded by

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

SSCE Practical Examination 2022-23

(Informatics Practices – 065)


SET-1
Time: 3 Hours
M.M. 30

Q.1 Consider the following DataFrame “car” and write commands for the following. (8)

i) Write CarNo Cname Price Acceleration Rating


python 1101 Audi 50Lacs 14.4 1
code to 1102 Wagner 22Lacs 50.4 3
create 1103 Nano 5Lacs 6.4 3
above 1104 Swift Dezire 30Lacs 25.2 1
data 1105 BMW 70Lacs 30.7 4
frame. ii)
Add a column availability with suitable values. iii)Display
name and Rating of all cars.
iv) Display first 2 rows from given data frame.
v) Change Rating of Wagner to 2.
vi) Create bar chart representing the name and the Price of the cars.
vii) Display name and Acceleration of 1102 to 1104 cars.
viii)Store the data in a csv file “car.csv”

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.

Practical File (5)


Project Report (5)
Viva-Voce (5)
SSCE Practical Examination 2022-23
(Informatics Practices – 065)
SET-2
Time: 3 Hours
M.M. 30

Q.1 Consider the following DataFrame “Loan” and write commands for the following. (8)

AcNo Name Loan Installments IntRate


1011 Kamini 200000 48 10
1012 Mohit 300000 24 15
1013 Roank 450000 36 12
1014 Prateek 800000 60 11
1015 Sunil 100000 12 12
i. Write python code to create above data frame.
ii. Add a column Branch with suitable values.
iii. Display name and rate of interest of all clients.
iv. Display last 2 rows from given data frame.
v. Change IntRate of AcNo 1014 to 10.
vi. Create line chart representing the name and the Installments of the clients.
vii. Display name and loan of 1011 to 1013 AcNo.
viii. Store the data in a csv file “Loan.csv”.
Q.2 Consider table Loan and write Sql queries for questions (i) to (vii) (7)

AcNo Name Loan Installments Start_Date IntRate


1011 Kamini 200000 36 2020-12-09 10
1012 Mohit 5000000 48 2018-06-10 15
1013 Roank 450000 24 2015-08-03 12
1014 Prateek 600000 60 2012-12-06 11
1015 Sandeep 250000 36 2012-01-03 12
1016 Dinesh 800000 48 2008-05-12 12
1017 Rajat 500000 36 2017-12-20 11
1018 Vinay 300000 60 2011-07-10 15
1019 Rakesh 450000 36 2011-01-01 12
1020 Kalpana 300000 40 2012-05-05 15

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

i. Write python code to create above data frame.


ii. Add a column Total To show total amount of all sweets. (Total= Rate * Qty)
iii.Display name and mode of payment of all sweets.
iv.Display last 3 rows from given data frame.
v.Change Rate of BillNo 1112 to 350.
vi.Create line chart representing the name and the Rate of the sweets.
vii.Display name and mode of payment of 1111 to 1113 items.
viii.Store the data in a csv file “sweets.csv”

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.

Practical File (5)


Project Report (5)
Viva-Voce (5)
SSCE Practical Examination 2022-23
(Informatics Practices – 065)
SET-4
Time: 3 Hours
M.M. 30

Q.1 Consider the following DataFrame “Cadet” and write commands for the following. (8)

Cno Name Fee Class House


1101 Sanjay 40000 12 RED
1102 Manisha 25000 10 BLUE
1103 Ritika 10000 12 RED
1104 Pooja 54000 11 BLUE
1105 Deepak 30000 12 GREEN

i. Write python code to create above data frame.


ii. Add a column Activity with suitable values.
iii. Display name and fee of all cadets.
iv. Display first 2 rows from given data frame.
v. Change class of Pooja to 12.
vi. Create bar chart representing the name and class of the cadets.
vii. Display House and Fee of 1101 to 1103 cadets.
viii. Store the data in a csv file “Cadets.csv”.

Q.2 Consider table Cadet and write Sql queries for questions (i) to (vii) (7)

Cno Name Fee Gender Class Birthdate House


1101 Sanjay 30000 Male 11 2008-12-09 RED
1102 Manisha 50000 Female 10 2009-03-22 BLUE
1103 Ritika NULL Female 12 2005-08-03 RED
1104 Pooja 60000 Male 10 2008-12-06 BLUE
1105 Deepak 25000 Female 12 2005-01-03 GREEN
1106 Prakash 80000 Male 12 2005-05-12 RED
1107 Juhi NULL Female 10 2006-12-20 BLUE
1108 Virat 30000 Male 10 2009-10-10 GREEN
1109 Priya 45000 Female 12 2004-01-01 RED
1110 Kapil NULL Male 10 2005-05-05 GREEN
i) To show name of cadets in Upper case whose fees is null.
ii) To show name and gender of cadets in ascending order of class.
iii) To show house and sum of Fee of different type of house.
iv) To count no of cadets whose name contains letter ‘e’ anywhere.
v) To show last four characters from name of all cadets.
vi)Remove details of cadets whose year of birth is 2005.
vii)Find the senior and junior most Cadet.
Practical File (5)
Project Report (5)
Viva-Voce (5)
SSCE Practical Examination 2022-23
(Informatics Practices – 065)
SET-5
Time: 3 Hours
M.M. 30

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)

Code Name Price Noofitems DOT Company


8001 Mouse 900 20 2022-07-31 Acer
8002 Pendrive 650 10 2021-08-01 Sandisk
8003 Harddisk 11500 30 2022-02-21 Seagate
8004 Speakers 5000 4 2022-09-29 Sony
8005 Printer 25000 5 2021-01-19 Perfect
8006 Mother board 21000 1 2022-12-02 Asrock
8007 Keyboard 1200 5 2022-11-04 Acer
8008 Cd drive 850 2 2022-12-12 Asus
8009 Ram 900 4 2021-09-27 Kingston
8010 Scanner 30000 2 30-11-2022 Sony
i. To show the length of the name of articles in whose price is below 10000.
ii. To show name and price in descending order of No of items.
iii.To show company name and total articles of different type of company.
iv.To show total price whose name ends with letter ‘e’.
v. To show last three characters from name of articles.
vi. Remove detail of articles whose year of transaction is 2021.
vii.Find the minimum and maximum price of articles.
Practical File (5)
Project Report (5)
Viva-Voce (5)
SSCE Practical Examination 2022-23
(Informatics Practices – 065)
SET-6
Time: 3 Hours
M.M. 30
Q.1 Consider the following DataFrame “emp” and write commands for the following. (8)

Eid Ename Age Deptno Salary


1001 Richa 48 10 35000
1002 Mehul Kumar 25 20 40000
1003 Tiya 28 30 45000
1004 Seema verma 30 10 40000
1005 Natasha Raheja 32 30 34000
i. Write python code to create above data frame.
ii. Add a column Bonus with suitable values.
iii. Display name and deptno of all emp.
iv. Display last 2 rows from given data frame.
v. Change age of Natasha to 45.
vi. Create line chart representing the name and the age of the emp.
vii. Display name and salary of 1002 to 1004 emp.
viii. Store the data in a csv file “emp.csv”

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

i) To show name of employees in upper case whose salary is above 40000.


ii) To show name and age in ascending order of age.
iii) To show age and sum of salary of employees of different ages.
iv) To count no of employees whose name contains letter ‘a’ anywhere in their name.
v) To show first three characters from name.
vi) Remove detail of employees whose year of hiring is after 2021.
vii) Find the senior and junior most employee.
Practical File (5)
Project Report (5)
Viva-Voce (
SSCE Practical Examination 2022-23
(Informatics Practices – 065)
SET-7
Time: 3 Hours
M.M. 30
Q.1 Consider the following DataFrame “item” and write commands for the following. (8)

ItemNo Item_name Scode Qty Rate


5001 Sharpener Classic 30 80 10
5002 Ball Pen 0.25 32 50 30
5003 Gel Pen Premium 20 200 10
5004 Gel Pen Classic 25 400 25
5005 Gel Raynolds 40 400 15
i) Write python code to create above data frame.
ii) Add a column Color with suitable values.
iii) Display name and Qty of all items.
iv) Display first 2 rows from given data frame.
v) Change qty of ball pen 0.25 to 100.
vi) Create line chart representing the name and the rate of the items.
vii) Display name and qty of 5001 to 5002 item.
viii) Store the data in a csv file “items.csv”

Q.2 Consider table Item and write Sql queries for questions (i) to (vii) (7)

ItemNo Item_name Scode Qty Rate LastBuy


5001 Sharpener Classic 30 80 10 2022-01-31
5002 Ball Pen 0.25 32 50 30 2021-02-01
5003 Gel Pen Premium 20 200 10 2022-02-29
5004 Gel Pen Classic 25 400 25 2021-03-25
5005 Eraser Small 40 400 15 2021-01-19
5006 Eraser Big 20 110 15 2022-12-22
5007 Ball Reynolds 25 125 20 2022-09-19
5008 Montex Gel 30 200 5 2022-12-24
5009 Ball Pen 0.5 20 180 10 2021-11-03
5010 Gel Reynolds 30 190 30 2021-02-18
i) To show name of itmes in lower case whose Scode is less than 40.
ii) To show name and qty of items in ascending order of qty.
iii) To show supplier code and total amount of different suppliers. Total amount(Rate*Qty)
iv) To count no of items whose name start with letter ‘g’.
v) To show last three characters from name.
vi) Remove detail of items whose month of last buy is December.
vii) Find the minimum and maximum price.

Practical File (5)


Project Report (5)
Viva-Voce (5)
SSCE Practical Examination 2022-23
(Informatics Practices – 065)
SET-8
Time: 3 Hours
M.M. 30

Q.1 Consider the following DataFrame “choco” and write commands for the following. (8)

Code Name Price Stock Sold


1111 Dark 200 10000 9000
1112 tropical orange 300 20000 15000
1113 Fruit n nut 100 25000 20000
1114 Peru origin 200 11000 10000
1115 Milky bar 100 5000 2000

i. Write python code to create above data frame.


ii. Add a column qty with suitable values.
iii. Display name and stock of all chocolates.
iv. Display last 2 rows from given data frame.
v. Change price of fruit n nut to 200.
vi. Create bar chart representing the name and the price of the chocolates.
vii. Display name and stock of 1111 to 1112 chocolates.
viii. Store the data in a csv file “choco.csv”

Q.2 Consider table Choco and write Sql queries for questions (i) to (vii) (7)

Code Cname Category price stock DOP


1111 dark classic dark 200 10000 31-07-2021
1112 tropical orange premium dark chocolates 300 20000 15-08-2022
1113 Fruit n nut premium dark chocolates 100 25000 21-02-2021
1114 peru origin single origin dark 200 11000 29-09-2022
1115 super fruit exclusive white chocolate 100 9000 19-01-2022
1116 hzelnut exotic milk variant 120 5000 02-12-2022
1117 white lemon exclusive white chocolate 100 8800 04-11-2022
1118 bittersweet extra dark chocolate 100 10000 12-12-2021
1119 darkmilk exotic milk variant 200 17000 27-09-2022
1120 assorted chocolate liquor 200 12000 30-12-2021
i) To show length of the names of chocolates whose price is above 200.
ii) To show name and category in descending order of stock.
iii)To show category and total chocolates of different type of category.
iv) To show total stock whose name end with letter ‘k’.
v) To show first three characters from name of chocolates.
vi) Remove detail of chocolates year of purchase is 2021
vii) Find the average and maximum stock.

Practical File (5)


Project Report (5)
Viva-Voce (5)

You might also like