Are you taking CLEP classes? Try clep.ai
| preferred AP College board partner for AP classes
AP Computer Science A/Unit 4: Iteration
Start Practice TestPractice Test
About Exam
medium Solved by 1 students

While Loop Termination Condition

< Prev
Next >

Consider the following code segment, where x, y, and z are int variables.

while ((x > y) || y >= z)
{
    System.out.print("*");
}

Which of the following Boolean expressions must be true after the loop terminates?

A

x > y || y >= z

B

x <= y && y < z

C

x <= y || y > z

D

x < y && y <= z

Hint
Did You Know?
Explain Why
Explain All Answers
Check Answer
Show Correct Answer
Report Question
Mark for review

Question Leaderboard

Not enough data yet to show leaderboard.

No comments yet. Be the first to comment!

AI Tutor

How can I help?

APFIVE © 2020.
Email: apfive@apfive.org|Privacy Policy|