What is the output of the code fragment given below?
Int i = 0;
Int j = 0;
While (i < 27)
{
I = i + 2;
J++;
}
System.out.println("j=" + j) ;
A) j=27
B) j=12
C) j=13
D) j=14
Correct Answer:
Verified
Q15: What is the output of the code
Q16: What is the output of the following
Q17: What is the output of the following
Q18: How many times will the following loop
Q19: What is the output of the following
Q21: What is the output of the code
Q22: What will be the result of running
Q23: What are the values of i and
Q24: Which of the following code snippets displays
Q25: How many times does the following code
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