UGC NET Computer Science and Applications MCQ Questions and Answers

Encapsulation in Object Oriented Programming (OOPs) MCQ Questions and Answers

1. Which of the following best describes encapsulation in object-oriented programming? A) Exposing all fields of a class for easy access B) Combining data and methods that operate on that data into a single unit and restricting access to some of the object’s components C) Inheriting behaviour from multiple parent classes D) Writing only static

Inheritance in Object Oriented Programming (OOPs) MCQ Questions and Answers

Q1. In OOP, “inheritance” primarily promotes which key concept? A) Encapsulation B) Code reusability C) Data hiding D) Overloading Answer: B) Code reusability Q2. The class that is inherited from another class is called: A) Parent class B) Base class C) Derived class D) Subclass Answer: B) Base class Q3. The class that inherits another