Coupling and Cohesion types Flashcards

(15 cards)

1
Q

Content coupling

A

when one module modifies or relies on the internal workings of another module

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Common coupling

A

when two modules share the same global data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Control coupling

A

when one module controlling the logic of another, by passing its information on what to do

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Stamp coupling

A

when modules share a composite data structure and use only a part of it

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Data coupling

A

when modules share data through parameters

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Uncoupled

A

when nothing is shared

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Functional cohesion (best)

A

when parts of a module all contribute to a single well-defined task of the module

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Sequential cohesion

A

when parts of a module are grouped because the output from one part is the input to another part

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Communicational cohesion

A

when parts of a module operate on the same data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Procedural cohesion

A

when parts of a module always follow a certain sequence of execution

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Temporal cohesion

A

when parts of a module are grouped when they are processed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Logical cohesion

A

when parts of a module are grouped because they logically do “the same thing” in some way

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Coincidental cohesion (worst)

A

when parts of a module are grouped arbitrarily (at random).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are the types of Coupling?

A

Content
Common
Controlled
Stamp
Data
Uncoupled

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are the types of Cohension

A

Functional
Sequential
Communicational
Procedural
Temporal
Logical
Coincidental

How well did you know this?
1
Not at all
2
3
4
5
Perfectly