CS FundamentalsHardProduct-company design interview

David Parnas's information-hiding principle says how a system should be divided into modules. Which statement captures it?

  1. A. Each module should correspond to one step of the processing flowchart
  2. B. Each module should hide a design decision likely to change (such as a data format or algorithm) behind a stable interface
  3. C. All data should be global so modules can share it
  4. D. Modules should be as small as possible regardless of their content

Correct answer: B. Each module should hide a design decision likely to change (such as a data format or algorithm) behind a stable interface

Parnas argued for decomposing by 'secrets' rather than by processing steps, so a change to a hidden decision stays inside one module. Flowchart-step decomposition spreads such decisions across modules.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic