Class 12 CS Practical File Index
Class 12 CS Practical File Index
GSBV BURARI
COMPUTER SCIENCE
PRACTICAL FILE
Table of Content:
S.No. Practical Name Page No. Teacher’s
Sign
PYTHON PRACTICALS
1. WAP in Python to find the factorial of a number using
function.
2. WAP in Python to implement default and positional
parameters.
3. Write a program in Python to input the value of x and n and
print the sum of the following series
1+x+x^2+x^3+ ----------------x^n
4. WAP in Python to read a text file and print the number of
vowels and consonants in the file.
5. WAP in Python to read a text file and print the line or
paragraph starting with the letter ‘S’
6. WAP in Python to read a text file and print the number of
uppercase and lowercase letters in the file.
7. WAP in Python to create a binary file with name and roll
number of the students. Search for a given roll number and
display the name of student.
8. Create a binary file with roll_no, name and marks of some
students and update the marks of specific student.
9. Create a binary file with eid, ename and salary and update
the salary of the employee.
10. Create a text file and remove the lines from the file which
contains letter ‘K’
11. Create a binary file with 10 random numbers from 1 to 40
and print those numbers.
12. Write a program in Python to create a CSV file with the
details of 5 students.
13. WAP in Python to read a CSV file.
MYSQL PRACTICALS
1. Write a SQL query to create a database.