Multiple Choice
What is the output of this code snippet? String str = "ABCabc";
Char ch;
Int i = 0;
While (i < str.length() )
{
Ch = str.charAt(i) ;
If (Character.isLowerCase(ch) )
{
System.out.print(i + " ") ;
}
Else
{
I++;
}
}
A) 3 4 5
B) 3
C) 3 3 3 3 3 ... (infinite loop)
D) 0 1 2
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q28: What does the following code snippet print?<br>Int
Q29: What will be printed by the statements
Q30: What is the last output line of
Q31: Which of the following loop(s) could possibly
Q32: What is the output of the following
Q34: What will be the output of the
Q35: How many times will the following loop
Q36: Which of the following statements expresses why
Q37: How many times does the following loop
Q38: In the _ loop header, you can