| 1. |
Write a short note on structured programming. |
|
Answer» Structured Programming The concept was contributed by Professor Dijkstra and other colleagues made it popular. Structured Programming deals only with logic and code and suggests making use of programming structures such as sequence, selection, iteration and modularity in programs. Features: 1. It focuses on techniques of developing good computer programs and problem solutions. 2. The structures can be repeated within each other. 3. It is most important to consider single-entry and single-exit control in programs and structures. 4. Structured cod – is like a page, which can be read from the top to bottom without any backward references. Advantages: 1. Programs are easy to write because the programming logic is well organized. 2. Programs can be functionally divided into smaller logical working units (modularity). 3. Modularity helps to easily understand the program, test and debug. 4. Easy to maintain because of single entry and single exit. 5. Eliminates the use of undisciplined controls (GO TO, BREAK, etc.,) in the program. 6. Read from top to bottom makes the code easy to read, test, debug, and maintain. |
|