Considering, X is a function defined in a software project, following…
2025
Considering, X is a function defined in a software project, following statements are made:
(i) Fan-in is a measure of the number of functions that call the function, X.
(ii) Fan-out is the number of functions which are called by the function, X.
(iii) High value of Fan-in means that X is tightly coupled to the rest of design of software.
(iv) High value of Fan-out means that overall complexity of X may be high.
Which of the following options is correct for the above-mentioned statements?
- A.
Only (i) and (ii) are true
- B.
Only (i) and (iii) are true
- C.
Only (ii) and (iv) are true
- D.
(i), (ii), (iii) and (iv) are true
Attempted by 53 students.
Show answer & explanation
Correct answer: D
Fan-in is defined as the number of functions that call function X, while Fan-out represents the number of functions called by X. A high Fan-in indicates tight coupling as multiple modules depend on X. Conversely, a high Fan-out suggests increased complexity for X as it manages numerous interactions. Therefore, all four statements regarding these metrics are correct.