1. Explain join (), ends with (), center () and split () method with examples.
2. Illustrate with example opening of a file with open( ) function, reading the contents of the file with read ( )
and writing to files with write( ).
3. Explain the following functions with example:
i)makedir() ii) getcwd() iii) isalpha() iv)upper() v)is_lower()
4. Read multidigit number from console. Develop a program to print frequency of occurrence of each
digit with suitable message.
5. Explain the following file operations in python with suitable example: i) Copying files and folders
ii)Moving files and folders iii) Permanently deleting files and folders.
6. What is meant by compressing files? Explain reading, extracting and creating ZIP files with an
example.
7. Define assertions. What does an assert statement in python consists of?
8. Explain safe delete and permanent delete with suitable Python programming.
9. Explain briefly pure functions and modifiers with examples.
10. Explain the concept of polymorphism with example.
11. Define a class and object. Construct the class called rectangle and initialize it with height =100,
width =200, starting point as (x=0, y=0). Write a program to display the centre point co-ordinates of
a rectangle.
12. Explain clearly __init__ () and __ str ()__ method with examples.