2nd PUC Computer Science Question Bank Chapter 6 Basic Concepts of OOP

Students can Download 2nd PUC Computer Science Chapter 6 Basic Concepts of OOP Questions and Answers, Notes Pdf, 2nd PUC Computer Science Question Bank with Answers helps you to revise the complete Karnataka State Board Syllabus and to clear all their doubts, score well in final exams.

Karnataka 2nd PUC Computer Science Question Bank Chapter 6 Basic Concepts of OOP

2nd PUC Computer Science Basic Concepts of OOP One Mark Questions and Answers

Question 1.
What is the fundamental idea of object oriented programming?
Answer:
Object & Classes.

2nd PUC Computer Science Question Bank Chapter 6 Basic Concepts of OOP

Question 2.
What is an object?
Answer:
Real world entity with attributes & functions.

Question 3.
Define the term class.
Answer:
Collection of objects having identical properties & common behaviour.

Question 4.
Define the term data abstraction.
Answer:
Abstraction refers to the process of representing essential features without including background details or explainations.

Question 5.
What is encapsulation?
Answer:
Data encapsulation combines data functions into a single unit called class.

Question 6.
What is meant by function overloading?
Answer:
Function overloading is the process of defining same function name to carry, out similar types of activities with various data items.

Question 7.
Define polymorphism.
Answer:
The ability of an operator & function to the multiple forms is known as polymorphism.

2nd PUC Computer Science Question Bank Chapter 6 Basic Concepts of OOP

Question 8.
What is inheritance?
Answer:
Inheritance is the capability of one class to inherit properties from another class.

Question 9.
What is a base class?
Answer:
It is the class whose properties are inherited by another class.

Question 10.
What is derived class?
Answer:
It is the class that inherit properties form base class.

Question 11.
How are base class & derived class related?
Answer:
Derived class inherits properties from base class.

Question 12.
Define the term data hiding.
Answer:
The data of a class can be accessed only by the functions of same class. It is called data hiding.

2nd PUC Computer Science Basic Concepts of OOP Two Marks Questions and Answers

Question 1.
What is the significance of class in oop?
Answer:
A class is a way of grouping objects having similar characteristics. Once a class is defined, any number of objects of that are created for explants, sum, moon are members of the class solar systems.

Question 2.
What is the difference between program module and an object?
Answer:
A program Module is a self – contained independent program segment only it does not provide security to data where as an object is a collection of data members and member functions that operate on data and data is provided with security.

2nd PUC Computer Science Question Bank Chapter 6 Basic Concepts of OOP

Question 3.
Mention different types of inheritance.
Answer:

  1. Single inheritance
  2. Multilevel inheritance
  3. Multiple inheritances
  4. Hierarchical inheritance
  5. Hybrid inheritance.

Question 4.
Mention any two advantages of object oriented programming over earlier programming methods.
Answer:
Advantages of OOP over earlier programming methods:

  1. The programs are modularized based on the principle of classes and objects.
  2. Linking code & object allows related objects to share common code. This reduces code duplication.
  3. Due to data encapsulation, external functions cannot access & modify the data. Thus the data is secured.
  4. Easy to develop complex software, Because, due to inheritance, complexity can be minimized.

2nd PUC Computer Science Basic Concepts of OOP Three Marks Questions and Answers

Question 1.
Briefly discuss the classes & objects.
Answer:
1. classes:
classes are user – defined datatypes & behave like the built – in types of a programming language. A class serves as a blueprint or a plan or as a template. It specifies, what data & function are included in objects of that class, when defining a class, we are creating a new abstract datatype that can be treated like any other built-in data type. A class contains the descriptions of the data sturcture and the implementation details for the object in that class.
ex: COLLEGE.

2. Objects:
objects are basic runtime entities in an oo- system. An object contains data & code to manipulate that data. When program executes, the objects interact by sending messages to one another. They can interact without knowing much of details of other objects. It is sufficient to know the type of message accepted and response returned by the objects. In simple words any entity is an object.
Ex: PESIT, RVCE, MSRIT are objects of class COLLEGE.

2nd PUC Computer Science Question Bank Chapter 6 Basic Concepts of OOP

Question 2.
Explain inheritance.
Answer:
This mechanism is used for implicit sharing of objects. One class can inherit the attributes and functionability of another class, & then suitably adjusted to provide additional functionality. When a class is modified to create another class, the former is called the base class’ or the ‘super class’ & the later is called ‘derived class’ or ‘child class’.
Advantages:

  1. Reusing existing code
  2. Faster development time
  3. Easy to maintain
  4. Easy to extend
  5. Memory utilization

Question 3.
Write short notes on polymorphism.
Answer:
Polymorphism is a feature of object oriented programming where a function can take multiple forms, based on the type of arguments, number of arguments & data type of return value. The ability of an operator & function to data multiple forms is known as polymorphism.

Question 4.
Mention any 4 high level language that follow object oriented programming approach.
Answer:
C++, JAVA, C#, F#, J#

2nd PUC Computer Science Basic Concepts of OOP Five Marks Questions and Answers

Question 1.
Write the differences between procedural programming & objects oriented programming.
Answer:
Procedural programming:

  1. No data hiding facility.
  2. we never create a user defined data type.
  3. program is organized as functions.

Object oriented programming:

  1. It supports data hiding methodology.
  2. we can create our own data type.
  3. organized as class and object.

2nd PUC Computer Science Question Bank Chapter 6 Basic Concepts of OOP

Question 2.
Explain advantages OOPs.
Answer:

  1. The programs are modularized based on the principle of classes & objects.
  2. Linking code & object allows related objects to share common code. This reduce the code duplication and code reusability.
  3. Data encapsulated along with the functions. Therefore the external nonmember functions cannot access or modify data, thus providing data security.
  4. Easier to develop complex software, because complexity can be minimized through inheritance.
  5. The concept of data abstraction separates object specification & object implementation.
  6. Creation & implementation of OOP code is easy & reduces software development time.
  7. OOP can communicate through message passing which makes interface description units outside system is very simple.

Question 3.
Write the disadvantages of objects oriented programming.
Answer:

  1. OOP software is not having set standards.
  2. The adaptability of flow diagrams & object-oriented programming using classes and objects is a complex process.
  3. To convert a real-world problem into an object-oriented model is difficult.
  4. The classes are overly generalized.

2nd PUC Computer Science Question Bank Chapter 6 Basic Concepts of OOP

Question 4.
Write the real-life applications of object-oriented programming.
Answer:

  1. Computer graphic application
  2. CAD / CAM software
  3. Object-oriented database
  4. User Interface design such or windows.
  5. Real-time systems.
  6. Simulation & modeling
  7. Artificial intelligence & expert systems.