Module A calls module B and passes data D. Module B uses only a subset of data D. Please name the kind of coupling between A and B.
Question 1 options:
Data |
|
Stamp |
|
Control |
|
Content |
Correct Answer: Stamp
Explanation:
The coupling is the measure of the dependency among the modules and it must be low for good system design.
The first option is incorrect because in data coupling two modules share an elementary data item.
The second option is correct because the stamp coupling occurs when two modules share a composite data-item passing as a parameter but only a subset of that passed date is used.
For example:
Pass the whole structure to a module but that module required only one field of its.
send(struct s){
s.name
}
The third option is incorrect because the controlled coupling occurs when a module controls the flow of any other module.
The fourth option is incorrect because if one module shares the code or content with another module then content coupling occurs.
So, only the second option is correct.
Get Answers For Free
Most questions answered within 1 hours.