Machine-translated by Google. Questions are authored in English.
Top

Discussion

Arrange the following steps in programming in a proper logical sequence :

(i) Program code
(ii) Program documentation
(iii) Program test
(iv) Program design

  • A.(iii) (ii) (i) (iv)
  • B.(iv) (i) (iii) (ii)
  • C.(iv) (iii) (i) (ii)
  • D.(ii) (iv) (i) (iii)

Answer: B

The logical sequence is (iv) (i) (iii) (ii): design, code, test, document.

A program is first designed, by working out its logic with algorithms or flowcharts. The design is then written as program code, the code is tested to find and remove errors, and finally the program is documented for users and maintainers.

Testing cannot come before the code exists, and coding should not begin before the design, so the options starting with testing or documentation, or putting testing before coding, are wrong. Documentation in practice continues throughout, but as a final step it comes last.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.