A top-down approach to programming calls for: Statement I: Working from the…
2022
A top-down approach to programming calls for:
Statement I: Working from the general to the specific.
Statement II: Postponing minor decisions.
Statement III: A systematic approach.
Statement IV: Intermediate coding of the problem.
Which set of statements is correct?
Answer: C. Statements I, II and III only — Concept Top-down design, also called stepwise refinement, starts with an overall specification and successively decomposes it into smaller, more detailed…
- A.
Statement I only
- B.
Statements I and II only
- C.
Statements I, II and III only
- D.
Statements I, II and IV only
Attempted by 274 students.
Show answer & explanation
Correct answer: C
Concept
Top-down design, also called stepwise refinement, starts with an overall specification and successively decomposes it into smaller, more detailed modules.
Low-level decisions are deferred until the relevant level of detail, and the decomposition proceeds systematically; writing intermediate code is not part of the design principle itself.
Application
Statement I follows directly from refinement: an overall problem is broken into increasingly specific parts.
Statement II follows because details that do not affect the current level are deliberately postponed.
Statement III follows because each refinement step applies a structured, systematic decomposition.
Statement IV confuses design refinement with implementation. Top-down design can be expressed in diagrams or pseudocode and does not call for intermediate coding as a defining step.
Contrast
Statement I only omits the deferred-decision and systematic-refinement characteristics.
Statements I and II only omit the systematic nature of stepwise refinement.
Statements I, II and IV replace systematic refinement with intermediate coding.
Statements I, II and III retain the three design characteristics without adding intermediate coding.
Cross-check
The three retained characteristics all describe design refinement; the excluded statement instead describes coding during implementation.
Result: Statements I, II and III only.
A video solution is available for this question — log in and enroll to watch it.