Difficulty: Easy
Correct Answer: Use many GOTO statements within modules
Explanation:
Introduction / Context:
Structured design promotes readable, maintainable programs through clear control structures and modular decomposition. Unrestricted jumps using GOTO contradict these principles and increase complexity.
Given Data / Assumptions:
Concept / Approach:
Structured programming avoids arbitrary jumps. Instead, developers use if else, loops, and case constructs to express logic. This reduces cyclomatic complexity and eases testing.
Step-by-Step Solution:
Verification / Alternative check:
Check authoritative guidelines that emphasize hierarchical modules, top to bottom flow, and limited coupling. None endorse liberal GOTO usage.
Why Other Options Are Wrong:
Common Pitfalls:
Believing that occasional structured exits are equivalent to arbitrary jumps is a misunderstanding.
Final Answer:
Use many GOTO statements within modules.
Discussion & Comments