The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+14 votes
1.1k views

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
asked in Programming by Veteran (69k points) | 1.1k views

2 Answers

+21 votes
Best answer

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.

answered by Loyal (3.3k points)
edited by
what's the difference b/w   C & B..?
Sir could you explain why the answer won't be B.

@ Pronomita Dey 1

Actually C execute the code, as how programmer written the code in a top down manner.

So, it will depend on program text , than more it depends on compiler

Pronomita Dey 1

Structured programming means we can understand what code is doing by looking at the code instead of running it.B cannot be answer.Compiled code will be in machine level language.

https://en.wikipedia.org/wiki/Structured_programming

+6 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

answered by Boss (8.4k points)
edited by


Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

33,593 questions
40,128 answers
114,021 comments
38,389 users