edited by
8,891 views
24 votes
24 votes

The goal of structured programming is to:

  1. have well indented programs
  2. be able to infer the flow of control from the compiled code
  3. be able to infer the flow of control from the program text
  4. avoid the use of GOTO statements
edited by

2 Answers

Best answer
50 votes
50 votes

Answer is (C). The goal of structured programming is to able to infer the flow of control from the program text . It means user can execute the code according to his requirement. $C$ and Pascal are good example of structured programming. In structured programming control passes one instruction to another instruction in sequential manner.

Avoiding the use of GOTO statements is not the goal of structured programming, it (avoiding the use of GOTO) is one of the requirements for a program to be structured.

edited by
14 votes
14 votes

C

The main goal of structured programming is to get an understanding about the flow of control in the given program text. In structure programming various control structures such as switch-case, if-then-else, while, etc. allows a programmer to decode the flow of the program easily

edited by
Answer:

Related questions

26 votes
26 votes
5 answers
1
Kathleen asked Sep 18, 2014
6,900 views
Choose the best matching between the programming styles in Group 1 and their characteristics in Group 2.$$\begin{array}{|ll|ll|}\hline \rlap{\textbf{Group 1}} & & \rlap{...
34 votes
34 votes
2 answers
3
Kathleen asked Sep 18, 2014
12,790 views
Consider the following C program segment:char p[20]; int i; char* s = "string"; int length = strlen(s); for(i = 0; i < length; i++) p[i] = s[length-i]; printf("%s", p);Th...
28 votes
28 votes
3 answers
4
Kathleen asked Sep 18, 2014
14,234 views
Consider the following C function:int f(int n) { static int i = 1; if(n >= 5) return n; n = n+i; i++; return f(n); }The value returned by $f(1)$ is:$5$$6$$7$$8$