Multiple Choice
What is the output of the code snippet given below? String s = "abcdefghijkl";
Int i = 1;
Do
{
If (i > 2)
{
System.out.print(s.substring (1, i) ) ;
}
I++;
}
While (i < 5) ;
A) abcd
B) bcde
C) bcbcd
D) cdef
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q1: What does the following loop compute? Scanner
Q2: What will be the range of the
Q3: Which of the following activities can be
Q4: Which of the following is considered a
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
Q11: What is the output of the following