Strings - Programming

Q1:

Which of the following will be the correct output for the C#.NET code snippet given below?
String s1='Kicit';
Console.Write(s1.IndexOf('c') + ' '); 
Console.Write(s1.Length);

A 3 6

B 2 5

C 3 5

D 2 6

E 3 7

ANS:B - 2 5

No answer description is available. Let's discuss.