Professional Documents
Culture Documents
2M
1.List different Object Oriented features supported by Python.
2. Define class and object in python
3.Write syntax for defining class.
4.Define inheritance and list types of inheritance.
5.Expalin how to create method in a class with example.
4 marks
1. Design a class student with data members : name, roll no., department,mobile no. Create
suitable methods for reading and printing student information.
2. With suitable example explain inheritance in Python.
3. Design a class Employee with data members: name, department and salary. Create
suitable information
4. Explain method overloading in python with example.
5. Explain Multilevel Inheritance with example.
Chapter 6 File I/O handling and Exception Handling
2M
1. Write steps involved in creation of a user defined exception
2.List types of file.
3.Define Exception Handling.
4.Explain use of “Raise” statement with example
4M
1Write a program to show user defined exception in Python.
2. Show how try…except blocks is used for exception handling in Python with examp
3. Design a python program which will throw exception if the value entered by user is
less than zero