176k views
2 votes
Structured programming leads to more testable code. True or False?

User Janpan
by
7.6k points

1 Answer

4 votes

Final answer:

True, structured programming generally leads to code that is more coherent, easier to understand, and simpler to test, thereby making it more testable.

Step-by-step explanation:

The statement structured programming leads to more testable code is generally considered to be true. Structured programming is a programming paradigm aimed at improving the clarity, quality, and development time of a computer program by making extensive use of the structured control flow constructs of selection (if/then/else) and repetition (while and for), block structures, and subroutines in contrast to using simple tests and jumps such as the go-to statement, which can lead to spaghettI code that is hard to follow and test. Structured programming techniques often result in code that is more coherent, easier to understand, and simpler to assess for correctness, thus making it more amenable to testing.

User Cheluis
by
8.4k points

No related questions found