Friday 16 December 2011

93.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(si.Length);
A.3 6
B.2 5
C.3 5
D.2 6
E.3 7
Answer: Option B