Solved

What Is the Output of the Code Snippet Given Below

Question 99

Multiple Choice

What is the output of the code snippet given below?
Int i = 0;
While (i != 11)
{
System.out.print(" " + i) ;
I = i + 2;
}


A) No output
B) 0 2 4 6 8
C) 10 12 14 16 18 …. (infinite loop)
D) 0 2 4 6 8 10 12 14 …. (infinite loop)

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions