Introduction to Object-Oriented Modeling
Multiple Choice Questions
- What is Encapsulation in OOP?
- The process of inheriting properties from a class.
- Combining data and functions that operate on them.
- The process of creating multiple objects from a class.
- A technique to optimize code performance.
- Which of the following is an example of Polymorphism in OOP?
- A class with multiple methods.
- A class inheriting from multiple classes.
- Multiple classes having methods with the same name but different implementations.
- A method changing data types during execution.
- Which OOP principle hides the internal state of an object and only exposes operations?
- Encapsulation.
- Abstraction.
- Inheritance.
- Polymorphism.
- Choose the correct statement about ‘Loose Coupling’ in software design.
- It makes it easier to modify and maintain software.
- It implies a high degree of interdependence between modules.
- It is the process of combining multiple classes into one.
- It refers to a class with multiple responsibilities.
Descriptive Questions
Describe the difference between an ‘Abstract Class’ and an ‘Interface’.
Why does software such as the Linux kernel or Mozilla Firefox tend to get more complex over time?
How do techniques such as information hiding, polymorphism, and interfaces promote loose coupling?
Explain what the waterfall model of software development lifecycle is with a detailed overview of each phase.