Home > Object Oriented Programming > Quizzes > Object Oriented Programming Practice Test: Basic OOPs Concept & Features
Object Oriented Programming Practice Test: Basic OOPs Concept & Features
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 100% Most missed: “Which among the following doesn’t come under OOP concept?”
Quiz on OOPs basic concepts, objects, classes, oops features, polymorphism, encapsulation and abstraction. Object-oriented programming (OOP) is a programming language that uses real-world entities, such as objects, hiding, and inheritance, to make visualization easier. The four main principles of OOP are encapsulation, inheritance, abstraction, and polymorphism. These principles help create reusable code, improve code maintainability, and reduce code complexity.  Here are some basic OOPs concepts: Encapsulation: Binds data and code into a single unit, keeping both safe from outside... Show more
Object Oriented Programming Practice Test: Basic OOPs Concept & Features
Time left 00:00
25 Questions

1. Which among the following violates the principle of encapsulation almost always?
2. A phone is made up of many components like motherboard, camera, sensors and etc. If the processor represents all the functioning of phone, display shows the display only, and the phone is represented as a whole. Which among the following have highest level of abstraction?
3. Which class can have member functions without their implementation?
4. Which of the following describes a friend class?
5. Class is pass by _______
6. Encapsulation and abstraction differ as ____________
7. If a function can perform more than 1 type of tasks, where the function name remains same, which feature of OOP is used here?
8. Which problem may arise if we use abstract class functions for polymorphism?
9. Instance of which type of class can’t be created?
10. What is default access specifier for data members or member functions declared within a class without any specifier, in C++?
11. Abstraction principle includes___________
12. Find which of the following uses encapsulation?
13. What is the additional feature in classes that was not in structures?
14. Which of the two features match each other?
15. Which among the following best describes polymorphism?
16. Which syntax for class definition is wrong?
17. Class with main() function can be inherited.
18. Which of the following is not a feature of pure OOP?
19. Which among the following is false, for a member function of a class?
20. Class is _________ abstraction.
21. Which among the following can be viewed as combination of abstraction of data and code.
22. Encapsulation helps in writing ___________ classes in java.
23. Which language does not support all 4 types of inheritance?
24. In case of using abstract class or function overloading, which function is supposed to be called first?
25. Which among the following is wrong?