Machine-translated by Google. Questions are authored in English.
Top

Object Oriented Analysis and Design Questions and Answers

1.

The purpose of interfaces is to minimize dependencies between different parts of program for the following reason :

Exam Year(s)

MH SET - 2018, SET Exam - 2018,

Answer: D

The answer is All of the above.

An interface separates what a component offers from how it is implemented. Other parts of the program depend only on the interface, so each part can be understood on its own, which makes systems easier to understand; the implementation stays hidden, which gives better data hiding; and the implementation can be changed without disturbing its users, which makes the system easier to modify.

Each of the first three options states one of these benefits, and none excludes the others, so all three reasons apply together.

Please log in or register to report this question.

2.

Among the attributes of good object oriented design, two desirable and most important attributes are :

Exam Year(s)

MH SET - 2018, SET Exam - 2018,

Answer: B

The key gives No. of children, response for a class.

These two attributes are metrics of the Chidamber and Kemerer object-oriented suite. 'Number of children' (NOC) counts the direct subclasses of a class and so measures the breadth of the inheritance hierarchy; 'response for a class' (RFC) counts the methods that can run in answer to a message sent to an object of the class and so measures coupling and complexity. A study of open-source C++ systems found these two to be the CK metrics that predicted defects significantly.

The other options each pair one of them with a term that is not a CK metric ('nature of the object', 'attributes of objects'), so option B is the only one made of two standard metrics. The ranking of these two as 'the most important' is not universal: other studies stress different CK metrics and the results depend on the data set, so this answer follows the official key and the metric names it uses.

Please log in or register to report this question.

3.

Which diagram in Unified Modeling Language (UML) shows a complete or partial view of the structure of a modeled system at a specific time ?

Exam Year(s)

Tripura Public Service Commission - 2019,

Answer: D

The diagram is the Object Diagram.

A UML object diagram shows a snapshot of the objects in a system, with their attribute values and links, at a specific moment. It is a complete or partial view of the structure of the modelled system at that time.

A class diagram shows the static structure in general, the classes and their relationships, not the state at one moment. Sequence and collaboration diagrams are interaction diagrams showing messages between objects, not structure.

Please log in or register to report this question.

4.

Which UML diagram shows the interaction between objects over time ?

Exam Year(s)

Tripura Public Service Commission - 2026,

Answer: C

The diagram is the sequence diagram.

A UML sequence diagram puts the participating objects across the top, each with a vertical lifeline, and shows the messages between them as arrows in time order from top to bottom. It is the diagram used to show how objects interact over time in a scenario.

A class diagram shows static structure: classes, attributes and relationships. A use case diagram shows actors and the system's functions. An activity diagram shows the flow of activities and decisions, like a flowchart, rather than messages between objects.

Please log in or register to report this question.

5.

During Object-Oriented Analysis, which relationship type implies that the'child' object cannot exist independently of the 'parent' object ?

Exam Year(s)

Tripura Public Service Commission - 2026,

Answer: B

The relationship is Composition.

Composition is a strong whole-part relationship in which the part's lifetime depends on the whole: if the whole is destroyed, so are its parts. A room cannot exist without its building. In UML it is drawn with a filled diamond.

Aggregation is a weaker whole-part relationship in which parts can exist independently (a department and its employees), shown with a hollow diamond. Generalization is inheritance, and realization links an interface to the class that implements it.

Please log in or register to report this question.

6.

Which UML diagram is most useful for visualizing the dynamic interaction between objects over a specific timeline ?

Exam Year(s)

Tripura Public Service Commission - 2026,

Answer: A

The diagram is the Sequence Diagram.

A UML sequence diagram shows objects as lifelines running down the page and the messages they exchange as arrows in time order, so it shows how objects interact over a timeline for a particular scenario.

A state chart diagram shows the states of a single object and the events that change them. A class diagram shows static structure, and a use case diagram shows actors and the functions they use, with no timeline in either.

Please log in or register to report this question.

Loading…

Other Subjects

Tags: Object Oriented Analysis and Design Questions and Answers || Object Oriented Analysis and Design MCQ Questions and Answers || Object Oriented Analysis and Design GK Questions and Answers || Object Oriented Analysis and Design GK MCQ Questions || Object Oriented Analysis and Design Multiple Choice Questions and Answers || Object Oriented Analysis and Design GK || GK on Object Oriented Analysis and Design || Software Engineering Questions and Answers || Software Engineering MCQ Questions and Answers || Software Engineering GK Questions and Answers || GK on Software Engineering