| preferred AP College board partner for AP classes
AP Computer Science A/Unit 4: Iteration
Start Practice TestPractice Test
Share
About Exam
medium Solved by 1 students
While Loop Termination Condition
< Prev
Next >

Consider the following code segment:

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

In the code segment above, x, y, and z are the variables of type int.

Which of the following must be true after the code segment has executed, and the loop as exited?

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

Question Leaderboard

Not enough data yet to show leaderboard.

AI Tutor

How can I help?

APFIVE © 2020.
Email: [email protected]|Privacy Policy