The principles of structured programming forbid the use of A. WHILE-DO B. GOTO C. IF-THEN-ELSE D. DO-WHILE E. None of the above

WHILE-DO
GOTO
IF-THEN-ELSE
DO-WHILE E. None of the above

The correct answer is: B. GOTO

GOTO is a programming statement that allows the programmer to jump to a different part of the code. It is considered to be a bad practice in structured programming because it can make code difficult to read and understand.

WHILE-DO, IF-THEN-ELSE, and DO-WHILE are all considered to be good practices in structured programming because they make code more readable and understandable.

WHILE-DO is a loop statement that repeats a block of code as long as a condition is true.

IF-THEN-ELSE is a decision statement that chooses between two or more blocks of code based on a condition.

DO-WHILE is a loop statement that repeats a block of code as long as a condition is true, but the condition is checked at the end of the loop instead of the beginning.

Exit mobile version