Skip to content
Sumita Arora Solutions
Join Our Community
Class 12 Projects
Solutions to Sumita Arora Assignment in Chapter 5.
[Type A] Chapter– 5 Class 12 CS – Sumita Arora Assignment | Q/A
[Type B] Unit – 5 Class 12 CS – Sumita Arora Assignment | Q/A
[Type C]Q2. A file sports_data contains information in the following format: Event – Participant. Write a function that would read contents from sports_data and create a file named Athletic_data copying only those records from sports_data where the event is named as Athletics.
[Type C]Q3. A file contains a list of telephone numbers in the following form: The Name contains only one word and the name and telephone numbers are separated by white space. Write a program Display its content in two columns.
[Type C]Q4. Write a program to count the words “to” and “the” present in a text file “Poem.text”
[Type C]Q5. Write a program to count the number of upper-case alphabets present in text file Article.txt
[Type C]Q6. Write a program that copies one file to another. Have the program read the file name from the user.
[Type C]Q7. Write a Program that appends the contents of one file to another. Have the program take the filenames from the user.
[Type C]Q8. Write a program that reads characters from the keyboard one by one. All lower case characters get stored inside the file LOWER, all upper case characters get stored inside the file UPPER and all other characters get stored inside others.
[Type C]Q9. Write a function in python to count and display the number of lines starting with alphabet “A” present in a text file, “LINES.txt” The file LINES.txt contains:
You cannot copy content of this page