Q
Which loop is described as 'entry-controlled'?
-
A
Every loop in C
-
B
while loop
-
C
repeat-until loop
-
D
do-while loop
Correct Answer:
B. while loop
Explanation:
while and for loops test the condition before the body runs. do-while and repeat-until test it after (exit-controlled).