Xii CS - Practical List
Xii CS - Practical List
TERM-2
1) Write a Python program to implement a stack using list (PUSH & POP
Operation on Stack).
2) Write a python program using function PUSH(Arr), where Arr is a list of
numbers. From this list push all numbers divisible by 5 into a stack
implemented by using a list. Display the stack if it has at least one
element, otherwise display appropriate error message.
3) Write a python program using function POP(Arr), where Arr is a stack
implemented by a list of numbers. The function returns the value deleted
from the stack.
5) Write the SQL Queries of the Following Tables: Product and Client.
Table: PRODUCT
6) Write the SQL Queries of the Following Tables: Doctors and Salary.
TABLE: DOCTOR
TABLE: SALARY
(i) Display NAME of all doctors who are in “MEDICINE” having more than 10
years experience from the Table DOCTOR.
(ii) Display the average salary of all doctors working in “ENT”department
using the tables. DOCTORS and SALARY Salary =BASIC+ALLOWANCE.
(iii) Display the minimum ALLOWANCE of female doctors.
(iv) Display the highest consultation fee among all male doctors.
(v) SELECT count (*) from DOCTOR where SEX = “F”
(vi) SELECT NAME, DEPT , BASIC from DOCTOR, SALRY Where DEPT
= “ENT” AND DOCTOR.ID = SALARY.ID
7) Write the SQL Queries of the Following Tables: Sender and Recipient.
TABLE : SENDER
TABLE :RECIPIENT
8) Integrate MySQL with Python by importing the MySQL module and add
records of student and display all the record.
9) ntegrate MySQL with Python by importing the MySQL module to search
student using rollno, name, age, class and if present in table display the
record, if not display appropriate method.
10) Integrate SQL with Python by importing the MySQL module to search a
student using rollno, update the record.
11) Integrate SQL with Python by importing the MySQL module to search a
student using rollno, delete the record.