XII CS Practical
XII CS Practical
XII CS Practical
PRACTICAL EXAMINATION
1) Write a function Display() to implement the Python MySQL connectivity to display the
student details. The function should retrieve the students details from the table
STUDENT(Regno, Name , Stream, Avg) stored in MYSQL (4)
2) Create a text file POEM.txt in notepad which contains following content. (4)
The land is in a constant state of birth, Giving life
to all who live on Earth.
Our carelessness and fears Have taken a toll over the years.
Her land is parched and scorched As man
continues to light the torch.
We continue a want of speed and ease,
Write a menu driven program with following function definitions
a) CountVowel() - Read above file and display the count of vowels
3) Given the table Employee and Salgrade ,Write SQL commands for a) to d) (4)
PRACTICAL EXAMINATION
1) Write a function Display_Stream () to implement the Python MySQL connectivity to display
the students in the Science Stream . The function should retrieve the students details
from the table STUDENT(Regno, Name , Stream, Avg) stored in MYSQL (4)
2) Create a binary file Club.dat which contains the following information. Mno,
Mname, Type (S/L)Write a menu driven program with the following function definitions
(4)
a) To display ICode, IName of all the vendors, who manufacture “Mobile Phones”.
b) To display IName, ICode, VName and price of all the products whose price
>=23000
c) To display Vname and IName manufactured by vendor whose code is “P04”.
d) Display VCode and Average Price of each Vendor
4) Viva
5) Journal
6) Project
Subject Code : 083 Time : 2 Hr
Subject : Computer Science Set: C
Max .Marks: 30
PRACTICAL EXAMINATION
1) Write a function Display_Avg() to implement the Python MySQL connectivity to display the
students whose avg>75 . The function should retrieve the students details from the
table STUDENT(Regno, Name , Stream, Avg) stored in MYSQL (4)
2) Create a CSV file Book.csv which contains the following information. BNO,
BNAME, PRICE. (4)
Write a menu driven program with the following function definitions
PRACTICAL EXAMINATION
1) Write a function Display_Stream () to implement the Python MySQL connectivity to display
the students in the Commerce Stream . The function should retrieve the students details
from the table STUDENT(Regno, Name , Stream, Avg) stored in MYSQL (4)
2) Create a text file POEM.txt in notepad which contains following content. (4)
4) Viva
5) Journal
6) Project
Subject Code : 083 Time : 2 Hr
Subject : Computer Science Set: E
Max .Marks: 30
PRACTICAL EXAMINATION
1) Write a function Display() to implement the Python MySQL connectivity to display the
student details. The function should retrieve the students details from the table
STUDENT(Regno, Name , Stream, Avg) stored in MYSQL (4)
2)Write a menu driven python program to implement stack to store the student details
(Regno, sname, avgmark). (4)
Write separate user defined to do the following
push() insert student details
pop() delete student
3) Given the table Employee and Salgrade ,Write SQL commands for a) to d) (4)