Computer Applications
Which of the following is an invalid loop?
- repeat
- while
- do-while
- for
Java Iterative Stmts
5 Likes
Answer
repeat
Reason — repeat is not a Java keyword. To repeat a certain action in Java, we use for, while and do-while loops.
Answered By
2 Likes
Related Questions
Which of the following loop executes at least once?
- for
- while
- do-while
- None of these
Which of the following is an exit-controlled loop?
- for
- do-while
- while
- None of these
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