1. What does OOP stand for?
2. In OOPS; an object is an instance of what?
3. Which OOPS principle promotes the reusability of code by allowing a class to inherit the properties and methods of another class?
4. Which of the following is not a OOPS principle?
5. Hiding implementation details and exposing only necessary information is called?
6. Polymorphism allows objects of different classes to be treated as objects of a common _______?
7. Which OOPS principle emphasizes bundling data and methods that operate on that data into a single unit?
8. In OOPS; the process of creating a new object from a class is called what?
9. Which OOPS principle allows a class to have multiple methods with the same name but different parameters?
10. Which OOPS principle allows you to define a blueprint for creating objects with a set of attributes and behaviors?
11. Which OOPS principle ensures that a class can be used as a blueprint to create objects; but cannot be instantiated itself?
12. 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?
13. Which OOPS principle allows you to restrict access to certain parts of a class and its data?
14. In OOPS; a "has-a" relationship between classes is implemented using what?
15. Which keyword is used to indicate that a method in a subclass is intended to override a method in the superclass?
16. Which OOPS concept allows you to define a contract that specifies a set of methods a class must implement?
17. Which OOPS principle encourages the separation of a complex system into smaller; manageable classes and objects?
18. Which OOPS concept allows you to change the behavior of a class without modifying its source code?
19. In OOPS; a method that is defined in a superclass and can be overridden by its subclasses is called as what?
20. Which OOPS concept allows you to define default implementations for methods in an interface?
21. Which keyword is used to make a class member accessible without needing to create an instance of the class?
21 uniquely designed questions just for you to evaluate your skills in Basics of OOP quiz. Are you ready to challenge yourself and explore more? Let's get started and see how much you can score out of 21.
Please feel free to report any corrections if you come across any inaccuracies or errors. Your feedback is valuable in maintaining the accuracy of our content.
Questions