Question 115 of 513
1Z0-829 Controlling Program Flow Practice Question
Which THREE statements are true about loops in Java?
⚠ Common exam trap
It's easy for candidates to confuse the execution guarantees of while (zero or more times) versus do-while (at least once), leading them to incorrectly select B or D as true.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
The break statement can be used to exit a loop prematurely.
The break statement in Java is used to immediately terminate the execution of a loop (for, while, or do-while) and transfer control to the statement following the loop. This allows premature exit based on a condition, which is a fundamental control flow mechanism in Java.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
The break statement can be used to exit a loop prematurely.
Why this is correct
Break exits the loop.
- ✗
A while loop always executes at least once.
Why it's wrong here
While loop may execute zero times.
- ✓
The continue statement skips the rest of the current iteration.
Why this is correct
Continue jumps to the next iteration.
- ✗
A do-while loop may execute zero times if the condition is false.
Why it's wrong here
Do-while executes at least once.
- ✓
A for loop can have multiple loop variables.
Why this is correct
Multiple variables can be declared and updated.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Last reviewed: Jun 11, 2026
This 1Z0-829 practice question is part of Courseiva's free Oracle certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 1Z0-829 exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.