





















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






















CERTIFICATE
This is to certify that Arnav Gupta of class XII-A, has successfully
completed the Practical File. It is a bonafide work done by the
student in partial fulfillment of CBSE’s AISSCE Examination,
2025-2026 and has been carried out under my direct
supervision and guidance.
INDEX
word separated by #.
consonants/ uppercase/ lowercase characters in the file.
a file and write it to another file.
Search for a given roll number and display the name, if not found display appropriate message.
random numbers between 1 and 6 (simulates a dice)
arithmetic operations like +, - , / , // and %
a file and write it into another file.
and display the frequency of element present in list and their location.
pop operation on stack (using List).
importing the MySql module record of employee and display the record.
importing the MSQL module to search a student using roll no, update the record.
importing MySQL module to search a student using roll no, delete the record.
server, show the list of databases and open it.
with appropriate data type, size.
is NEITHER Delhi or Mumbai.
of birth is after Nishant’s Birth date 1995-12-06.
rank wise.
city and within the city in the ascending order their marks.
the character ‘a’.
whose marks is in the range 400 and 500 (both inclusive)
number fo student for each class.
separately, along with their average marks.
who lives in ‘Mumbai’
(like, Sunday, Monday, ..) of al females, whose marks is greater than or equal to 400.
Q1. Read a text file line by line and display each word separated by #.
Sample.txt
Output
Q2. Read a text file and display the number of vowels/ consonants/ uppercase/ lowercase characters in the file.
Q4. Create a binary file with name and roll number. Search for a given roll number and display the name, if not found display appropriate message.
Q5. Write a random number generator that generates random numbers between 1 and 6 (simulates a dice)
Q7. Remove all the lines that contain the character ‘a’ in a file and write it into another file.
Q8. Write a program to search an element in a list and display the frequency of element present in list and their location.
Q11. Write a program to integrate SQL with Python by importing the MSQL module to search a student using roll no, update the record.
Q12. Write a program to integrate SQL with Python by importing MySQL module to search a student using roll no, delete the record.