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.

Loading…
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