Class 12 CS Practical File 2024-25 Index[1] (1)
Class 12 CS Practical File 2024-25 Index[1] (1)
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.
20. Use the Select command to get the details of the students
with marks more than 30.
21. Shiva, a student of class XII, created a table “CLASS”. Grade is
one of the columns of this table. Write the SQL query to find
the details of students whose grade have not been entered.
22. Shiva is using a table with the following details:
Students(Name, Class, Stream_id, Stream_Name)
Write the SQL query to display the names of students who