Computer Applications
Which of the following loop executes at least once?
- for
- while
- do-while
- 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
Which of the following is an exit-controlled loop?
- for
- do-while
- while
- None of these
Which of the following is an invalid loop?
- repeat
- while
- do-while
- for
Which of the following is not a jump statement in Java?
- return
- jump
- break
- continue
How many times will the following code print "Hello"?
for (int i = 1; i <= 5; i++); { System.out.println("Hello"); }
- 0
- 1
- 5
- 4