Share
Explore BrainMass

Cohesion: An example with some questions

Which of the systems shows better design principles?
A. System 1
B. System 2

What is the main reason for your answer to question 17?
A. modularity.
B. coupling.
C. cohesion.
D. none of the above.

Which of the above is an example of procedural cohesion?
A. Ex. 1
B. Ex. 2
C. Ex. 3
D. Ex. 4

Which of the above is an example of functional cohesion?
A. Ex. 1
B. Ex. 2
C. Ex. 3
D. Ex. 4

Which of the above is an example of sequential cohesion?
A. Ex. 1
B. Ex. 2
C. Ex. 3
D. Ex. 4

Rank these examples from worst to best.
A. Ex. 4 (worst), Ex. 1, Ex. 3, Ex. 2 (best)
B. Ex. 3 (worst), Ex. 2, Ex. 4, Ex. 1 (best)
C. Ex. 1 (worst), Ex. 3, Ex. 2, Ex. 4 (best)
D. Ex. 2 (worst), Ex. 4, Ex. 1, Ex. 3 (best)

Which system shows greater fan out?
A. System 1
B. System 2

Which system is a better design, all other things being equal?
A. System 1
B. System 2

Refer to the following program descriptions:
(1) Rearrange the Lender List (LL) in increasing order.

(2) DO WHILE I is between 1 and (number of lenders in the LL)-1
Set LOW to index of smallest value in LL
Interchange LL(I) with L(LOW)
ENDDO

Which program description is at a higher level of abstraction?
A. (1)
B. (2)

Program description (2) is suitable for a:
A. requirements definition.
B. conceptual design document.
C. technical design document.
D. program design document.

See attached file for full problem description.

Attachments

Solution Summary

Solution provides a good understanding of the concept Cohesion by answering some questions.

$2.19