CS FundamentalsHardProduct-company design interview
David Parnas's information-hiding principle says how a system should be divided into modules. Which statement captures it?
- A. Each module should correspond to one step of the processing flowchart
- B. Each module should hide a design decision likely to change (such as a data format or algorithm) behind a stable interface
- C. All data should be global so modules can share it
- 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.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- Match each system with its architectural style. P: a compiler with lexer → parser → optimiser → code generator. Q: a typical 3-tier web…
- In MVVM, unlike MVC and MVP, how does the view usually get updated when data changes?
- A company organised as separate frontend, backend and database teams keeps producing a three-tier system even when microservices were…
- A public JSON API is used by many clients that ignore unknown fields. How many of these changes are breaking: (1) adding a new optional…
- In npm's semantic-version ranges, which versions does ^1.4.2 allow, and which does ^0.4.2 allow?
- Two developers run npm install on the same commit a month apart and get different dependency versions, though package.json is unchanged…