• +91 9723535972
  • info@interviewmaterial.com

OOP Interview Questions and Answers

OOP Interview Questions and Answers

Question - 21 : - What do u meant by “SBI” of an object?

Answer - 21 : - SBI stands for State, Behavior and Identity. Since every object has the above three. State: It is just a value to the attribute of an object at a particular time. Behaviour:It describes the actions and their reactions of that object.Identity: An object has an identity that characterizes its own existence. The identity makes it possible to distinguish any object in an unambiguous way, and independently from its state.

Question - 22 : - Differentiate the class representation of Booch, Rumbaugh and UML?

Answer - 22 : - If you look at the class representation of Rumbaugh and UML, It is some what similar and both are very easy to draw.

Question - 23 : - Whether unified method and unified modeling language are same or different?

Answer - 23 : - Unified method is convergence of the Rumbaugh and Booch. Unified modeling lang. is the fusion of Rumbaugh, Booch and Jacobson as well as Betrand Meyer (whose contribution is “sequence diagram”). Its’ the superset of all the methodologies.

Question - 24 : - What do you meant by static and dynamic modeling?

Answer - 24 : - Static modeling is used to specify structure of the objects that exist in the problem domain. These are expressed using class, object and USECASE diagrams. But Dynamic modeling refers representing the object interactions during runtime. It is represented by sequence, activity, collaboration and statechart diagrams

Question - 25 : - What are the steps involved in designing?

Answer - 25 : - Before getting into the design the designer should go through the SRS prepared by the System Analyst. The main tasks of design are Architectural Design and Detailed Design. In Architectural Design we find what are the main modules in the problem domains Detailed Design we find what should be done within each module.

Question - 26 : - What do you mean by analysis and design?

Answer - 26 : - Analysis: It is the process of determining what needs to be done before how it should be done. In order to accomplish this, the developer refers the existing systems and documents. So, simply it is an art of discovery. Design:It is the process of adopting/choosing the one among the many, which best accomplishes the users needs. So, simply, it is compromising mechanism.

Question - 27 : - What is the difference between OOP and SOP?

Answer - 27 : -

Object-Oriented Programming

Structural Programming

Object-Oriented Programming is a type of programming which is based on objects rather than just functions and procedures

Provides logical structure to a program where programs are divided functions

Bottom-up approach

Top-down approach

Provides data hiding

Does not provide data hiding

Can solve problems of any complexity

Can solve moderate problems

Code can be reused thereby reducing redundancy

Does not support code reusability

Question - 28 : -
What is Object Oriented Programming?

Answer - 28 : -

Object-Oriented Programming(OOPs) is a type of programming that is based on objects rather than just functions and procedures. Individual objects are grouped into classes. OOPs implements real-world entities like inheritance, polymorphism, hiding, etc into programming. It also allows binding data and code together.

Question - 29 : - Why use OOPs?

Answer - 29 : -

  • OOPs allows clarity in programming thereby allowing simplicity in solving complex problems
  • Code can be reused through inheritance thereby reducing redundancy
  • Data and code are bound together by encapsulation
  • OOPs allows data hiding, therefore, private data is kept confidential
  • Problems can be divided into different parts making it simple to solve
  • The concept of polymorphism gives flexibility to the program by allowing the entities to have multiple forms

Question - 30 : - What are the main features of OOPs?

Answer - 30 : -

  • Inheritance
  • Encapsulation
  • Polymorphism
  • Data Abstraction
To know more about OOPs in JAVA, Python, and C++ you can go through the following blogs:
  • JAVA OOPs Concepts
  • Python OOPs Concepts
  • C++ OOPs Concepts


NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners