Chapter 6 - Oop Concepts
Chapter 6 - Oop Concepts
OOP CONCEPT
One mark questions:
1.Define Structured Programming. (U)
ANS : An organized approach to programming involving the use of three basic control
structures – Sequence, Conditional and loop.
2.Define Top-down design. (U)
ANS : Top-down design involves dividing a problem into sub-problems and further dividing
the subproblems into smaller sub-problems until it leads to sub-problems that can be
implemented as program statements.
3.What is Bottom up? (U)
ANS : Combining of the lower level modules to form modules of high level. This approach is
the reverse of top-down design.
5.Define an Object. (U)
ANS : An object is a collection of data members and associated member functions.
6 Expand OOP.
ANS : Object oriented programming
7. What is Object Oriented Programming (OOP)? (U)
ANS : OOP is a programming language model in which programs are organized around
data, or objects, rather than functions and logic.
8. What is Class? (U)
ANS : A class is a collection of objects that have identical properties, common
behavior and shared relationship.
9. Define a Module. (U)
ANS : A module is a set of source code files that are compiled independently.
10. What is Modularity? (U)
ANS : Modularity is a technique adopted to divide a complex problem into a number of
self contained independent programming fragments or modules.
11. What is Abstraction? (U)
ANS : Data Abstraction refers to the process of representing essential features without
including background details or explanations.
12. What is Data Encapsulation.? (U)
ANS :The wrapping of data and functions into a single unit (class) is called data
encapsulation.
13. What is Inheritance? (U)
ANS :Inheritance is the process by which one object can acquire and use the properties of
another object.
14. What is Polymorphism? (U)
ANS : The ability of an operator and function to take multiple forms is known as
Polymorphism.
15. What is Dynamic binding? (U)
ANS :Dynamic binding is the process of linking the procedure call to a specific sequence of
code or function at run time or during the execution of the program.
16. What is Message Passing? (U)
ANS :In
object is request for execution of procedure.
17. Mention any one benefit of OOP. (K)
ANS : Creation and implementation of OOP code is easy and reduces software
development time.
18. Mention any one advantage of OOP. (K)
ANS : It reduces code duplication.
19. Mention any one disadvantage of OOP. (K)
ANS : Larger program size: OOP’s typically involves more lines of code than procedural
programs.
20. Mention any one application of OOP. (K)
ANS : Computer graphics applications.
Two marks questions
1.What is structured programming? (U)
ANS :An organized approach to programming involving the use of three basic control
structures – Sequence, Conditional and loop.
7.Mention any two characteristics of OOP(K)
ANS : Data Abstraction , data encapsulation.
8.Explain Data Abstraction (U).
ANS : Data Abstraction refers to the process of representing essential features without
including background details or explanations.
9. Explain about Data Encapsulation(U)
ANS :The wrapping of data and functions into a single unit (class) is called
data encapsulation.
10. Explain about Inheritance. (U)
ANS :Inheritance is the process by which one object can acquire and use the properties of
another object.
11. Explain about Polymorphism. (U)
ANS :The ability of an operator and function to take multiple forms is known as
Polymorphism.
12. Explain about Dynamic binding. (U)
ANS : Dynamic binding is the process of linking the procedure call to a specific sequence of
code or function at run time or during the execution of the program.
13. Explain about Message Passing. (U)
ANS :
object is request for execution of procedure.
14. Mention any two advantages of OOP. (K)
ANS : This reduces code duplication and code reusability.
Creation and implementation of OOP code is easy and reduces software development
time.
15. Mention any two disadvantages of OOP. (K)
ANS :Larger program size: OOP’s typically involves more lines of code than procedural
programs.
for all types of programs.
To convert a real world problem into an object oriented model is difficult.
16. Mention any two applications of OOP. (K)
ANS : Computer graphics applications.
CAD/CAM software
Object-oriented database.
Real-time systems.
17. Define the terms: a) Encapsulation b) Polymorphism. (U)
ANS :The wrapping of data and functions into a single unit (class) is called
data encapsulation.
The ability of an operator and function to take multiple forms is known as Polymorphism.
18. What is function overloading? (U)
ANS :Function overloading means two or more function have same, but differ in the number
of arguments or data type of arguments.
19. What is operator overloading. (U)
ANS : When an existing operator operates on new data type is called operator overloading