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
Q45: Which of the following loops executes the
Q74: How many times does the following loop
Q75: What is the output of the code
Q76: Which loop does not check a condition
Q77: What is the output of the code
Q78: What is the output of the code
Q81: What is the output of the code
Q82: Storyboards are a helpful part of the
Q83: What will be the output of the
Q84: Which of the following loops executes exactly
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents