0% found this document useful (0 votes)
3 views1 page

Class XII - COED - Computer Science - Files - Practical Programs

The document outlines practical programming tasks for Class XII Computer Science at the International Indian School, Al Jubail for the academic year 2025-26. It includes various file manipulation programs such as counting characters, reading and copying files, and managing records in binary and CSV formats. The tasks are designed to enhance students' programming skills in file handling and data management.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

Class XII - COED - Computer Science - Files - Practical Programs

The document outlines practical programming tasks for Class XII Computer Science at the International Indian School, Al Jubail for the academic year 2025-26. It includes various file manipulation programs such as counting characters, reading and copying files, and managing records in binary and CSV formats. The tasks are designed to enhance students' programming skills in file handling and data management.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

INTERNATIONAL INDIAN SCHOOL, AL JUBAIL

CO-EDUCATION SECTION (2025-26)


CLASS XII - COMPUTER SCIENCE - FILES - PRACTICAL PROGRAMS

1. Write a program to count the number of alphabets, uppercase, lowercase, vowels,


consonants, digits, spaces and special characters in a file.

2. Write a program to read a text file line by line and display each word separated by any
given special character.

3. Write a program to read a text file and perform the following


(i) Count the number of occurrence of a given character
(ii) Count the number of occurrence of a given word

4. Write a program to read a file and copy the lines that starts with a particular character
to another file and remove it from the original file.

5. Write a program to count the frequency of words in a file using dictionary.

6. Write a menu driven program to perform the following operations onto a binary file
[Link]
(a) Add Records (b) Display records (c) Search Records (d) Exit
The structure of file content is: [s_id, name, brand, type, price]

7. Write a menu driven program to perform the following operations into [Link]
(a) Add Number (b) Display Details (c) Search Number (d) Exit
The structure of file content is: [Number, Name, Place]

8. Write a menu driven program to implement the following on a binary file of the
structure [Doctor_Id, Doctor_Name, Hospital_Id,Joining_Date,Speciality,Salary]
(a) Add new record (b) Display the records (c) Update record (d) Exit

9. Write a program to create a CSV file and store empno, name and salary of employee.
(a) Add a new employee record
(b) Display the records whose salary in range of 5000 to 15000
(c) Display the count of employees whose salary is above 10000

10. A binary file “[Link]” has structure {UserId:100, Password:’XXX’}. Write a program
to perform the following
(a) Search the password for a given UserId
(b) Change the password for a given UserId
(c) Check if a given UserId and Password matches

You might also like