GATE / CS ARCHIVE

GATE CSE 2004 / QUESTION 1

Purpose of structured programming

Engineering Mathematics & Other Topics · Software Engineering · Full GATE CSE 2004 paper

GATE 2004, Q1 1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Software Engineering

Question 1, GATE 2004: What is the goal of structured programming?
Options:
(A) Have well-indented programs
(B) Infer the flow of control from compiled code
(C) Infer the flow of control from program text
(D) Avoid using GOTO statements
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

1. Structured control constructs make the program’s control flow understandable from its source text, C. Indentation helps readability but is not the defining goal, and eliminating every GOTO is a technique rather than the underlying purpose.

2. This general programming-methodology item is retained as supplemental.

3. Teaching check: Sequence, selection and iteration expose control structure directly in the source. Indentation is cosmetic: a well-indented unstructured jump sequence still requires reconstructing its control-flow graph. Conversely, the educational goal is understandability, not a syntactic ban treated as an end in itself.

Original paper, page 1