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

Discussion

Which of the following languages is more suited to a structured program?

 

  • A.PL/1
  • B.FORTRAN
  • C.BASIC
  • D.PASCAL
  • E.None of the above

Answer: D

Correct answer: PASCAL

Pascal was designed by Niklaus Wirth expressly to teach structured programming: it provides block structure, strong typing, procedures and functions with proper parameter passing, and the control constructs (if…then…else, while, repeat, for, case) that make GOTO unnecessary. FORTRAN, BASIC and PL/1 of that era all leaned on line numbers and jumps.

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

Post your comment

Please log in or register to post a comment.