CS FundamentalsHardGATE CS · Infosys

A structure chart shows a date-formatting utility called by 14 modules (high fan-in) and a controller module that calls 23 different modules (very high fan-out). Which assessment is most reasonable?

  1. A. Both are bad; fan-in and fan-out should always be 1
  2. B. High fan-in for a reusable utility is good; very high fan-out suggests the controller knows too much and should delegate through intermediate modules
  3. C. High fan-in is bad because the utility is overused; high fan-out is good
  4. D. Neither metric says anything about design quality

Correct answer: B. High fan-in for a reusable utility is good; very high fan-out suggests the controller knows too much and should delegate through intermediate modules

Reuse shows up as high fan-in, which is desirable for cohesive utilities. A module that directly coordinates very many others is complex and tightly coupled; textbooks suggest keeping fan-out to a modest number, say under 7.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic