Thursday, 25 March 2010

Identify two important features of a structured program.


Q: Identify two important features of that a program must satisfy to be called as a structured program.

Ans.: - First, a structured program uses three type of program constructs i.e. selection, sequence and iteration. Structured programs avoid unstructured control flows by restricting the use of GOTO statements. Secondly, structured program consists of a well partitioned set of modules. Structured programming uses single entry, single-exit program constructs such as if-then-else, do-while, etc. Thus, the structured programming principle emphasizes designing neat control structures for programs.

No comments:

Post a Comment