KPS - LIst of Programs For Practical File Term 2
KPS - LIst of Programs For Practical File Term 2
Q1. Write a program to implement a stack for these book – details (book no, book name). That is, now
each item node of the stack contains two types of information – a bookno and its name. Implement
Push, Pop and display operation.
Q2. Write a python program all records in ascending order of their age from the given table student.
Q3. Write a program to delete the student record whoes name is read from the keyboard at execution
time.
Q4. Consider the tables given below and answer the questions that follow:
Table: Department
Dept DName MinSal MaxSal HOD
10 Sales 25000 32000 1
20 Finance 30000 50000 5
30 Admin 25000 40000 7
Table: Employee
No Name Salary Zone Age Grade Dept
1 Mukul 30000 West 28 A 10
2 Kritika 35000 Centre 30 A 10
3 Naveen 32000 West 40 20
4 Uday 38000 North 38 C 30
5 Nupur 32000 East 26 20
6 Moksh 37000 South 28 B 10
7 Shelly 36000 North 26 A 30
Write SQL commands to: