KnowledgeBoat Logo
|

Computer Applications

Which of the following loop executes at least once?

  1. for
  2. while
  3. do-while
  4. None of these

Java Iterative Stmts

23 Likes

Answer

do-while

Reason — do-while loop is an exit controlled loop, i.e., it checks the condition at the exit point. Therefore, it always executes at least once.

Answered By

12 Likes


Related Questions