Multiple Choice
What is the output of the following code snippet?
Int i = 1;
While (i < 10)
{
System.out.print(i + " ") ;
I = i + 2;
If (i == 5)
{
I = 9;
}
}
A) 1 3 5
B) 1 3 9
C) 1 3 5 7 9
D) 1 3 5 9
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q6: What is the output of the following
Q7: Which of the following conditions can be
Q8: Is the following code snippet legal? boolean
Q9: What will be the output of the
Q10: Choose the loop that is equivalent to
Q12: What will be the result of running
Q13: What is the output of the code
Q14: How many times does the following loop
Q15: What is the output of the following
Q16: What is the output of the code