XII - COMPUTER Chapter Unkempt WORK
XII - COMPUTER Chapter Unkempt WORK
School, Gurugram
Practical File Work
Class XII
Subject – Computer Science
LIST OF PROGRAMS FOR PRACTICAL FILE
1. Write a program in python to count the number of vowels present in a given file named as ‘sample.txt’.
2. Write a python function displaywords() that will print all the words that are having length greater than
three.
3. Write a user defined function which displays the corresponding grade obtained by the students
4. Write a user defined function in Python named showInLines() which reads contents of a text file named
‘STORY.TXT’ and displays every sentence in a separate line.
5. Write a function c_words() in Python that separately counts and displays the number of uppercase and
lowercase alphabets in a text file, ‘Words.txt’.
6. Write a program to write information of number of students i.e. Roll no, name, class and address into a
file named ‘student.txt’.
7. Define a function ZeroEnding(SCORES) to add all those values in the list of SCORES, which are ending
with zero(0) and display the sum.
8. Write a python function SwitchOver(Val) to swap the even and odd positions of the values in the list
Val.
9. Write a python function that accepts a string and calculate the number of uppercase letters and lowercase
letters.
10. Write a function lenFOURword(L), where L is the list of elements passed as argument to the function.
The function returns another list named ‘indexList’ that stores the indices of all four lettered word of L.
AISSCE 2025-26
PRACTICAL FILE
Submitted By Submitted To
Student Name: Mr. Rohit Rathi
Class: PGT Comp. Sc.
Board Roll No.:
Certificate
This is to certify that <student name>, a student of Class XII, has
successfully completed the Computer Science practical file for the
academic session 2025-26, under the supervision of Mr. Rohit Rathi at
S D Memorial Sr. Sec. School.
The work presented in this file is based on the prescribed syllabus, and I
hereby declare that the practicals have been completed in accordance
with the guidelines provided.
Signature
Mr. Rohit Rathi
(PGT CS)
Acknowledgement
I would like to express my heartfelt gratitude to Mr. Rohit Rathi, my
Computer Science teacher, for his constant guidance and support
throughout the preparation of this practical file. His insightful
suggestions and encouragement helped me complete this work
effectively.
I am also deeply thankful to Ms. Kamlesh Taneja, our respected
Principal, for providing the opportunity to explore and enhance my
skills through this project. Her leadership and commitment to excellence
have been a constant source of inspiration.
Lastly, I extend my appreciation to my parents and friends for their
unwavering support throughout this journey.
<Student Name>
Class XII
S D Memorial Sr. Sec. School
INDEX
PAGE TEACHER’S
S.NO CONTENT
NO. SIGNATURE
Write a program in python to count the number of vowels
1.
present in a given file named as ‘sample.txt’.
Write a python function displaywords() that will print all
2.
the words that are having length greater than three.
Write a user defined function which displays the
3.
corresponding grade obtained by the students
Write a user defined function in Python named
showInLines() which reads contents of a text file named
4.
‘STORY.TXT’ and displays every sentence in a separate
line.
Write a function c_words() in Python that separately counts
5. and displays the number of uppercase and lowercase
alphabets in a text file, ‘Words.txt’.
Write a program to write information of number of students
6. i.e. Roll no, name, class and address into a file named
‘student.txt’.
Define a function ZeroEnding(SCORES) to add all those
7. values in the list of SCORES, which are ending with
zero(0) and display the sum.
Write a python function SwitchOver(Val) to swap the even
8.
and odd positions of the values in the list Val.
Write a python function that accepts a string and calculate
9.
the number of uppercase letters and lowercase letters.
Write a function lenFOURword(L), where L is the list of
elements passed as argument to the function. The function
10.
returns another list named ‘indexList’ that stores the indices
of all four lettered word of L.