Unit 1: (If, If-Else, If-Elif-Else)
Unit 1: (If, If-Else, If-Elif-Else)
UNIT 2
1. What are different types of inheritance? Explain with suitable example.
2. Explain polymorphism with program example.
3. Explain data abstraction with program example.
4. Define the terms: i) class ii) object iii) abstraction iv) encapsulation v) inheritance
vi) polymorphism.
5. Develop a program to demonstrate data encapsulation in python.
6. Explain object and class with syntax and example.
7. Develop a python program to demonstrate creating a method in python.
8. Explain method overriding with suitable program example.
9. Develop a python program to demonstrate creating a class and objects in python.
10. What is inheritance? Demonstrate how to inherit from another class in python.
11. What is virtual functions? Explain virtual functions with example.
12. Explain the different ways of importing math module in python.
13. Define modules. Develop a python program to implement rock, paper and scissors game by
importing a random module.
14. Define Package. Write a python program to create a package(college), sub package(all dept),
modules (departments) and create an admin and cabin function to the module.
15. Explain class attribute and class decorators with suitable example.
16. Explain attributes and types of methods in OOP.