0% found this document useful (0 votes)
48 views

Advanced Python Programming_Assignment 4(CO4)

Assignment

Uploaded by

Hetal Vasava
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)
48 views

Advanced Python Programming_Assignment 4(CO4)

Assignment

Uploaded by

Hetal Vasava
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
You are on page 1/ 1

DEPARTMENT OF INFORMATION TECHNOLOGY

GOVERNMENT POLYTECHNIC, HIMATNAGAR


Nr. Motipura circle, Gadhoda road, Himatnagar-383001(S.K.), Gujarat
Email: gphdit@gmail.com Website: http://it.gphimatnagar.in/

Subject/Subject Code Semester Issue Date Due Date

Advanced Python Programming (4321602) 2nd 1/6/2023 8/6/2023

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

Term Dates: 20/03/2023 to 01/07/2023

You might also like