4th-5th Module Question Bank
4th-5th Module Question Bank
4th-5th Module Question Bank
Question Bank
Module-4
1. Explain SHUTIL module functions (copy, move, rename, delete) with examples.
2. Explain send2trash module with example.
3. Explain the application of walk() with example.(with diagram)
4. Explain the following with code
a. Reading ZIP Files
b. Extracting from ZIP Files
c. Creating and Adding to ZIP Files
5. With example program explain how Exceptions can be raised and handled.
6. Explain Assertion with example.
7. Explain Logging with examples.
8. Explain different logging levels with examples.
9. How to disable logging give an example?
10. How to write log records to a file?
Module-5
1. Explain the following with examples
a. Class
b. Objects
c. Attributes
d. Methods
2. Create a Class Rectangle with suitable attributes. Explain Instances as return values.
3. Explain the difference between copy and deepcopy with example.
4. Differentiate Pure functions and Modifiers with examples.
5. What are the features of Object Oriented Programming?
6. Explain the init method and str method with examples.
7. Write Short note on the following
a. Operator Overloading
b. Type based dispatch
c. Polymorphism