Computer Applications
State whether the following statement is True or False :
To execute a do-while loop, the condition must be true in the beginning.
Java Iterative Stmts
1 Like
Answer
False
Answered By
2 Likes
Related Questions
How many times will the following loop execute?
public static void main(String args[]) { int sum = 0; for (int i = 10; i > 5; i++) { sum += i; } System.out.println(sum); }- 5
- 0
- 15
- Infinite loop
How many times will the following loop execute?
public static void main(String args[]) { int i = 1; while (i < 10) if (i++ % 2 == 0) System.out.println(i); }- 4
- 5
- 0
- 10
State whether the following statement is True or False :
The while loop is an exit-controlled loop.
State whether the following statement is True or False :
The while part of a do-while statement must be terminated by a semicolon.