When the number of iterations are not known in advance which loop is most suitable?

  • ADo while
  • BFor
  • CWhile
  • DAll of them
Show answerHide answer

Correct answer C

While loop is ideal when iterations depend on a condition rather than a fixed count. It continues looping until the condition becomes false, making it flexible for unknown iterations.