Pages

Friday, November 13, 2009

C++ questions: Part 7




C++ Q1: What are the steps involved in designing?
Answer: 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 domain.
In Detailed Design we find what should be done within each module.

C++ Q2: What are the main underlying concepts of object orientation?
Answer: Objects, messages, class, inheritance and polymorphism are the main concepts of object orientation.

C++ Q3: What do you meant by "SBI" of an object?
Answer: 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.

C++ Q4: Differentiate persistent & non-persistent objects?
Answer: Persistent refers to an object's ability to transcend time or space. A persistent object stores/saves its state in a permanent storage system with out losing the information represented by the object.
A non-persistent object is said to be transient or ephemeral. By default objects are considered as non-persistent.

C++ Q5: What do you meant by active and passive objects?
Answer: Active objects are one which instigate an interaction which owns a thread and they are responsible for handling control to other objects. In simple words it can be referred as client.
Passive objects are one, which passively waits for the message to be processed. It waits for another object that requires its services. In simple words it can be referred as server.

C++ Q6: What is meant by software development method?
Answer: Software development method describes how to model and build software systems in a reliable and reproducible way. To put it simple, methods that are used to represent ones' thinking using graphical notations.

No comments: