Exam Prac CS
Exam Prac CS
LAB TEST :
1. Create a menu driven program in Python using Pickle library and 8
• Create a binary file with following structure
Employee name
Employee no
Employee salary
• Display the contents of the binary file.
2. Consider the following tables STOCK and DEALERS. Write SQL commands for 4
the statements (i) to (iv)
TABLE: STOCK
ITEMNO ITEM DCODE QTY UNITPRICE
5005 BALL PEN 0.5 102 100 16
5003 BALL PEN 0.25 102 150 20
5002 GEL PEN PREMIUM 101 125 14
5006 GEL PEN CLASSIC 101 200 22
5001 ERASER SMALL 102 210 5
5004 ERASER BIG 102 60 10
5009 SHARPENER 103 160 8
CLASSIC
TABLE : DEALERS
DCODE DNAME
101 RELIABLE STATIONERS
103 CLASSIC PLASTICS
102 CLEAR DEALS
(i) To display the details of all Items in the STOCK table in ascending order of
itemno.
(ii) To display ItemNo and Item name of those items from STOCK table whose
UnitPrice is more than Rupees 10.
(iii) To display the details of those items whose dealer code (Dcode) is 102 or
quantity in STOCK (Qty) is more than 100 from the table Stock.
(iv) To display maximum UnitPrice of items for each dealer individually as per
Dcode from the table STOCK.
Marks Scored Max Marks
Python Program 8
SQL Queries 4
Report File 7
Project 8
Viva Voce 3
Total 30
SET-B
AISSCE PRACTICAL EXAMINATION 2023-24
SCHOOL CODE: 55191 TOTAL MARKS: 30
SUBJECT & CODE :COMPUTER SCIENCE (083) DURATION : 3 Hrs
______________________________________________________________________________________
LAB TEST :
1. Create a Python based Stack Program on implementation of stack using list data 8
structure.
Push a stack
Pop a stack
Display a stack
2. Consider the following tables PRODUCTS and SUPPLIERS. Write SQL 4
commands for the statements (i) to (iv)
TABLE : PRODUCTS
PID PNAME QTY PRICE COMPANY SUPCOD
E
101 DIGITAL CAMERA 120 12000 RENBIX S01
14X
102 DIGITAL PAD 11i 100 22000 DIGI POP S02
104 PEN DRIVE 16 GB 500 1100 STOREKING S01
106 LED SCREEN 32 70 28000 DISPEXPERT S02
S
105 CAR GPS SYSTEM 60 12000 MOVEON S03
TABLE :SUPPLIERS
SUPCOD SNAME CITY
E
S01 GET ALL INC KOLKATA
S03 EASY MARKET CORP DELHI
S02 DIGI BUSY GROUP CHENNAI
(i) To display the details of all the products in ascending order of product names
(i.e., PNAME).
(ii) To display the price, product name and quantity (i.e., qty) of those products
which have quantity more then 100.
(iii) To display the names of those suppliers, who are either from DELHI or from
CHENNAI.
(iv) To display the name of the companies and the name of the products in
descending order of company names.
Marks Scored Max Marks
Python Program 8
SQL Queries 4
Report File 7
Project 8
Viva Voce 3
Total 30
LAB TEST :
1. Create a Python program to read a text file and display. 8
Vowels
Consonants
Lowercase
Uppercase
TABLE: STATIONARY
ITEMNO ITEM DCODE QTY UNITPRICE
5005 BALL PEN 0.5 102 100 16
5003 BALL PEN 0.25 102 150 20
5002 GEL PEN PREMIUM 101 125 14
5006 GEL PEN CLASSIC 101 200 22
5001 ERASER SMALL 102 210 5
5004 ERASER BIG 102 60 10
5009 SHARPENER 103 160 8
CLASSIC
TABLE : DEALERS
DCODE DNAME
101 RELIABLE STATIONERS
103 CLASSIC PLASTICS
102 CLEAR DEALS
(i) To display the details of all Items in the STATIONARY table in descending
order of itemno.
(ii) To display ItemNo and Item name of those items from STATIONARY table
whose UnitPrice is more than Rupees 10.
(iii) To display the details of those items whose dealer code (Dcode) is 102 or
quantity in STATIONARY (Qty) is more than 100 from the table Stock.
(iv) To display minimum UnitPrice of items for each dealer individually as per
Dcode from the table STATIONARY.
Marks Scored Max Marks
Python Program 8
SQL Queries 4
Report File 7
Project 8
Viva Voce 3
Total 30
LAB TEST :
1. Create a menu driven Python program to calculate and return the values of 8
• Area of triangle
• Area of a circle
• Area of regular polygon
2. Consider the following tables ITEM and CUSTOMER. Write SQL commands for 4
the statements (i) to (iv)
TABLE: ITEM
CID ITEMNAME MANUFACTUR PRICE
E
PC01 PERSONAL COMPUTER ABC 35000
LC05 LAPTOP ABC 55000
PC03 PERSONAL COMPUTER XYZ 32000
PC06 PERSONAL COMPUTER COMP 37000
LC03 LAPTOP PQR 57000
TABLE :CUSTOMER
CID CNAME CITY PID
01 ROY DELHI LC03
06 SINGH MUMBAI PC03
12 PANDEY DELHI PC06
15 SHARMA DELHI LC03
16 AGARWAL BANGLORE PC01
Python Program 8
SQL Queries 4
Report File 7
Project 8
Viva Voce 3
Total 30