DEPARTMENT OF ARTIFICIAL INTELLIGENCE AND DATA SCIENCE
Name of the Course: Python for Data Science
Course Coordinator: Mrs. M. Gowsalyaa
Academic Year: 2024-2025 (Even)
Name of the Student :
Register Number :
ASSESSMENT TEST-DAY 2
1. What is Object-Oriented Programming (OOP)?
2. What are the key features of OOP?
3. What is a class and an object in Python?
4. What is the difference between a class and an instance?
5. What is the __init__ method in Python?
6. What is self in Python classes?
7. What is the difference between instance variables and class variables?
8. What is inheritance in Python?
9. What is method overloading in Python?
10. What is method overriding in Python?
Intermediate Python OOPs Interview Questions
11. What is polymorphism in Python?
12. What is encapsulation, and how does Python achieve it?
13. What is the super() function in Python?
14. What are abstract classes in Python?
16. What is multiple inheritance in Python?
17. What is the diamond problem in multiple inheritance? How does Python handle it?
18. What are class methods in Python?
19. What is the difference between staticmethod and classmethod?
20. What are magic methods in Python?
21. How does Python handle garbage collection?
22. What is metaclass in Python?
23. How is data hiding implemented in Python?
24.What is the purpose of __slots__ in Python classes?
25. What is the Global Interpreter Lock (GIL) and its impact on Python OOP?