Advanced Python Programming_Assignment 4(CO4)
Advanced Python Programming_Assignment 4(CO4)
Assignment: 4(CO4)
Title: Unit– IV Files Handling
Cognitive
CO
Level
1. What do you mean by file? What do you mean by file handling? CO4 R
2. Write 5 points on Differentiate between Text File and Binary File. CO4 R
3. What kind of different operations we can perform in a file? CO4 R
4. How to open and close file? Also give the Syntax for same. CO4 R
5. Demonstrate different type of file modes provided by python for file operations CO4 U
6. Demonstrate read() and readlines() with example. CO4 U
and explain their uses.
7. Demonstrate write() and writelines() with example. CO4 U
8. Describe setting file offsets in python. CO4 R
9. Describe seek() method in python. R
10. Demonstrate Object Serialization with example. CO4 U
11. Demonstrate Object de-serialization with example. U
12. Develop a program to count all the Upper case and Lower case words in file. CO4 A
13. Develop a program to copy the contents of one file to another file CO4 A
14. Create a program that writes in a file using the writelines() function. CO4 A
15. Develop a program to tell the file position in the file stream. CO4 A
16. Develop a program to to count all the vowels in the file. CO4 A