What is COUPLING in software design?
- A.Coupling is a measure of the degree of functional interdependence between two modules
- B.Coupling is a measure of the degree of functional non-dependence between two modules
- C.Coupling is a measure of the functional robustness of a software module
- D.Coupling is a measure of the degree of functionally connected dependence between two modules
Correct answer
Explanation
The correct answer is A: coupling measures the degree of functional interdependence between two modules. If one module must know the internal data or logic of another to work, the two are tightly coupled, and a change in one forces a change in the other. Good design therefore aims at low coupling together with high cohesion, where cohesion measures how closely the parts inside a single module belong together. Option B is wrong because it states the opposite, non-dependence; that idea belongs to the goal of loose coupling, not to the definition of coupling itself. Option C is wrong because robustness is the ability of a module to behave sensibly on wrong or extreme input, which is a quality attribute tested during testing, not a measure of inter-module linkage. Option D is wrong because it is a loosely worded restatement that misses the word interdependence on which the standard definition rests.
Read the full article: Algorithms, Flowcharts and SDLC: Symbols, Models and PYQs
Practice Questions
View allWhich symbol is used to represent a decision in a flowchart?
- A.Oval
- B.Rectangle
- C.Diamond
- D.Parallelogram
Show answer
The diamond or rhombus is the decision symbol: it holds a condition and has one entry with two exits, marked Yes and No, so the flow branches according to the test.
Read the full explanation →In a flowchart, the oval or rounded shape is used to show:
- A.Start and Stop
- B.A subroutine call
- C.A decision
- D.The direction of flow
Show answer
The oval is the terminal symbol, and a well-formed flowchart has exactly one Start terminal and at least one Stop terminal; a chart that can never reach a Stop describes an infinite loop and so breaks the finiteness property of an algorithm.
Read the full explanation →The word algorithm is derived from the name of which mathematician?
- A.Euclid
- B.Al-Khwarizmi
- C.Charles Babbage
- D.Blaise Pascal
Show answer
Muhammad ibn Musa al-Khwarizmi was a ninth-century Persian mathematician and astronomer whose treatise on calculation with Hindu-Arabic numerals reached Europe in Latin translation; his Latinised name produced the word algorithm, and another of his works gave the word algebra.
Read the full explanation →The worst-case time complexity of binary search on a sorted array of n elements is:
- A.O(n)
- B.O(n log n)
- C.O(log n)
- D.O(n squared)
Show answer
Binary search compares the key with the middle element and throws away half the array at every step, so the number of comparisons grows with the logarithm of the array size; an array of a million sorted items needs about twenty comparisons.
Read the full explanation →What is the other name of Linear Sequential model in software engineering?
- A.Spiral model
- B.Prototype model
- C.Waterfall model
- D.RAD model
Show answer
The Waterfall model is called the linear sequential model because the project flows in one direction through requirement analysis, design, coding, testing, deployment and maintenance, with each phase completed and signed off before the next begins and no overlap between them.
Read the full explanation →