Multiple Choice
What is the result when the following code is run?
Double x = 1;
Double y = 1;
Int i = 0;
Do
{
Y = x / 2;
X = x + y;
I = i + 1;
}
While (x < 2.5) ;
System.out.print(i + " ") ;
A) 1
B) 2
C) 3
D) 4
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q17: Which of the following statements expresses why
Q19: What values does counter variable i assume
Q20: How many times does the following code
Q21: Suppose that the chance to hit the
Q22: How many times will the output line
Q23: How many times is the text "Let's
Q38: In the _ loop header, you can
Q100: How many times does the loop execute
Q107: Which statement about storyboards is true?<br>A)A storyboard
Q121: What is the output of the code