1. The class used as a basis for inheritance is the ____ class.
2. Ou want a method with behavior similar to a virtual method--it is meant to be overridden --expect that it does not have a method body. It just has a method signature. What kind of method should you use?
3. Which statement best describes the method of inheritance in OOP?
4. A mobile phone is made up of components such as a motherboard, camera, and sensors. The motherboard represents all the functions of a phone, the display shows the display only, and the phone is represented as a whole. Which of the following has the highest level of abstraction?
5. What is the function of a user diagram?
6. You have modules that are dependent on each other. If you change one module, you have to make changes in the dependent modules. What term is used to describe this problem, and what is a potential solution?
7. Which choice is a benefit of using dependency injection?
8. Which statements best describe the Gang of Four design patterns called Memento and Observer?
Object Oriented Programming (OOP) MCQs | Topic-wise