Multiple Choice
What is the output of the code snippet given below? String s = "12345";
Int i = 1;
Do
{
If (i > 1)
{
System.out.print) ;
}
}
While (i < 5) ;
A) No output
B) No output (infinite loop)
C) 12345
D) 2345
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q8: Is the following code snippet legal? boolean
Q9: What will be the output of the
Q10: Choose the loop that is equivalent to
Q11: What is the output of the following
Q12: What will be the result of running
Q14: How many times does the following loop
Q15: What is the output of the following
Q16: What is the output of the code
Q17: What will be printed by the statements
Q18: What is the first and last value