1. In OOPS; a "has-a" relationship between classes is implemented using what?
Explanation:
Report for correction2. Which OOPS concept allows you to define a contract that specifies a set of methods a class must implement?
Explanation:
Report for correction3. Which keyword is used to make a class member accessible without needing to create an instance of the class?
Explanation:
Report for correction4. Which OOPS principle promotes the reusability of code by allowing a class to inherit the properties and methods of another class?
Explanation: Allowing a class to inherit the properties and methods of another class is called Inheritance.
Report for correction5. Hiding implementation details and exposing only necessary information is called?
Explanation:
Report for correction6. Which OOPS principle emphasizes bundling data and methods that operate on that data into a single unit?
Explanation: Encapsulation emphasizes bundling data and methods that operate on that data into a single unit.
Report for correction7. In OOPS; the process of creating a new object from a class is called what?
Explanation:
Report for correction8. Which OOPS principle allows a class to have multiple methods with the same name but different parameters?
Explanation:
Report for correction9. Which OOPS principle allows you to define a blueprint for creating objects with a set of attributes and behaviors?
Explanation:
Report for correction10. Which OOPS principle allows you to restrict access to certain parts of a class and its data?
Explanation:
Report for correction11. Which OOPS concept allows you to change the behavior of a class without modifying its source code?
Explanation:
Report for correction12. Which OOPS concept allows you to define default implementations for methods in an interface?
Explanation:
Report for correction13. Which of the following is not a OOPS principle?
Explanation: All others are part of OOPS principle.
Report for correction14. Polymorphism allows objects of different classes to be treated as objects of a common _______?
Explanation: Polymorphism allows objects of different classes to be treated as objects of a common Super class.
Report for correction15. In OOPS; an object is an instance of what?
Explanation: Object is an instance of a class that has its own state and access to all of the behaviour defined by its class.
Report for correction16. Which OOPS principle encourages the separation of a complex system into smaller; manageable classes and objects?
Explanation: Abstraction is a act of representing complex systems or ideas in a simplified way that can be easily understood
Report for correction17. In OOPS; a method that has the same name as the class and is automatically called when an object is created is called as what?
Explanation:
Report for correction18. What does OOP stand for?
Explanation: OOPS is the abbreviation for Object-Oriented Programming.
Report for correction19. Which OOPS principle ensures that a class can be used as a blueprint to create objects; but cannot be instantiated itself?
Explanation:
Report for correction20. Which keyword is used to indicate that a method in a subclass is intended to override a method in the superclass?
Explanation:
Report for correction21. In OOPS; a method that is defined in a superclass and can be overridden by its subclasses is called as what?
Explanation: We can override superclass methods so that meaningful implementation of superclass method can be defined in subclass. This is also known as runtime polymorphism.
Report for correction