Multiple Choice
When the number of repetitions are known in advance,you should use a ___________ statement.
A) while
B) do…while
C) for
D) None of the above
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q16: The controlling expression for a switch statement
Q17: Discuss the rules Java follows when evaluating
Q18: Common loop errors are:<br>A)Off-by-one<br>B)Infinite loops<br>C)Both a and
Q19: Write Java code that uses a while
Q20: What is the output of the following
Q22: To compare two strings lexicographically the String
Q23: A compound statement is enclosed between:<br>A). [
Q24: Write a multi-way if-else statement that evaluates
Q25: An if selection statement executes if and
Q26: Write Java code that uses a for