4th-5th Module Question Bank

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Introduction to Python Programming -22PLC15B

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

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy