Introduction to Object-Oriented Programming – MCQs July 21, 2025 by u930973931_answers 20 Score: 0 Attempted: 0/20 Subscribe 1. : Which of the following is not a feature of Object-Oriented Programming? (A) Encapsulation (B) Inheritance (C) Compilation (D) Polymorphism 2. : In OOP, what does the term “inheritance” refer to? (A) Creating a new class from an existing class (B) Storing variables in a database (C) Encrypting object data (D) Hiding internal object details 3. : What is encapsulation in Object-Oriented Programming? (A) Breaking the program into functions (B) Deriving a class from another class (C) Binding data and methods that work on data within one unit (D) Using the same function name with different parameters 4. : Which of the following allows objects to take on more than one form? (A) Abstraction (B) Inheritance (C) Encapsulation (D) Polymorphism 5. : What is a class in Object-Oriented Programming? (A) A collection of similar functions (B) A blueprint for creating objects (C) A function that returns objects (D) A data type in C 6. : What is an object in OOP? (A) A variable (B) A method (C) An instance of a class (D) A header file 7. : What is the concept of abstraction in OOP? (A) Showing all data to the user (B) Hiding internal details and showing only functionality (C) Connecting classes (D) Reducing execution time 8. : Which feature of OOP promotes code reuse? (A) Inheritance (B) Polymorphism (C) Abstraction (D) Encapsulation 9. : Which of the following is true about constructors? (A) They are used to destroy objects (B) They are used to initialize objects (C) They can return values (D) They cannot be overloaded 10. : Which keyword is used to create an object in most OOP languages? (A) class (B) def (C) new (D) object 11. : What is method overloading? (A) Defining multiple classes with the same name (B) Using the same method name with different parameters (C) Defining multiple main functions (D) Returning multiple values from a method 12. : Which access modifier makes members accessible only within the same class? (A) public (B) protected (C) private (D) static 13. : Which of the following supports multiple inheritance directly? (A) Java (B) Python (C) C# (D) None of the above 14. : What is dynamic polymorphism achieved through? (A) Operator overloading (B) Method overloading (C) Method overriding (D) Function nesting 15. : Which OOP principle helps to prevent unauthorized access to class data? (A) Polymorphism (B) Encapsulation (C) Inheritance (D) Abstraction 16. : Which of the following is not a type of inheritance? (A) Single (B) Multiple (C) Hierarchical (D) Modular 17. : What does UML stand for in OOP design? (A) Uniform Method Line (B) Unified Modeling Language (C) User Management Library (D) Universal Machine Language 18. : Which of these is used to destroy an object in C++? (A) Destructor (B) Constructor (C) Reconstructor (D) Terminator 19. : Which of the following languages is purely object-oriented? (A) Java (B) Python (C) C++ (D) Smalltalk 20. : Which of the following is not a benefit of OOP? (A) Increased code reusability (B) Better modularity (C) Faster execution in all cases (D) Easier maintenance