سوال 26

حل تشریحی سوال شماره 26 زبان عمومی و تخصصی (انگلیسی)

کنکور ارشد مهندسی فناوری اطلاعات (IT) 1398

In object-oriented programming, if the methods of a class tend to be similar in many aspects, then the class is said to have high cohesion. In a highly cohesive system, code readability and reusability is increased, while complexity is kept manageable. Cohesion is increased if: 1- The functionalities embedded in a class, accessed through its methods, have much in common. 2- Methods carry out a small number of related activities, by avoiding coarse-grained or unrelated sets of data. Advantages of high cohesion (or "strong cohesion") are: 1- Reduced module complexity (they are simpler, having fewer operations). 2- Increased system maintainability, because logical changes in the domain affect fewer modules. 3- Increased module reusability, because application developers will find the component they need more easily among the cohesive set of operations provided by the module.
26.

Which of the following can be inferred from the passage?

1)

Highly cohesive classes tend to be less complex.

2)

Modular design requires cohesive data.

3)

Reusability is adversely affected by high cohesion.

4)

Two classes that have much in common are mutually cohesive.

پاسخ ها

0 پاسخ
تا کنون پاسخی برای این سوال وارد نشده است،

ارسال پاسخ