Class 12 Computer Science Important Questions
(ASSEB / AHSEC)

Chapter 1 - Object Oriented Programming (OOP)

1. What is OOP?

Answer : OOP stands for Object Oriented Programming. It is a programming methodology that focuses on objects rather than functions. It represents real-world entities as objects and includes features such as encapsulation, abstraction, inheritance, polymorphism, etc.

2. What is an object?

Answer : An object is an instance of a class. It represents a real world entity that has data (attributes) and functions (methods).

3. What is a class?

Answer: A class is a collection of similar objects. It is a user-defined datatype that acts as a blueprint for creating objects.It contains data members and member functions.

4. What are the features of OOP?

Answer : The following are the features of OOP:

  • Encapsulation
  • Abstraction
  • Modularity
  • Inheritance
  • Polymorphism

5. What is Encapsulation?

Answer :The process of combining data and functions (that operate on data) into a single unit (called class) is called encapsulation.

6. What is Abstraction?

Answer : Abstraction is the process of showing only the essential features of an object while hiding the unnecessary implementation details.

7. What is Modularity?

Answer : Modularity is the process of dividing a large program into small independent modules, where each module performs a specific task.

8. What is Inheritance?

Answer :The process of creating a new class from an existing class is called Inheritance. The new class acquires the properties (data members) and behaviors (member functions) of the existing class and can add additional features of its own.

The existing class is called Base Class or Super Class and

the new class is called Derived Class or Sub Class.

9. What is Polymorphism?

Answer : Polymorphism is the ability of an object, function or operator to take many forms. In C++, polymorphism is a feature that allows us to create multiple functions or operators with the same name but whose behavior is different depending upon the context or situation. 

10. What is Data Hiding?

Answer : Data hiding is the process of restricting direct access to the data members of a class. The data is protected from unauthorized access by declaring it as private and allowing access through only through public member functions.

11. What is an Abstract Class?

Answer : An Abstract class is a class whose objects cannot be created. It is designed to be used only as a base class for other classes. An abstract class usually contains one or more pure virtual functions.

12. What is a Concrete Class?

Answer : A concrete class is a derived class of an abstract class whose objects can be created. It provides complete implementation of all member functions, including any inherited pure virtual function.

13. Write the advantages of OOP.

Answer : The advantages of OOP are:

  • Code reusability
  • Proper representation of real world objects
  • Easy maintenance
  • Easy extension
Scroll to Top