1)

What is the output for the given C#.NET code?

static void Main(string[] args)
{
string s1 = "Kerala";
string s2;
s2 = s1.Insert (7, "Assam");
Console.WriteLine(s2);
}


A) Kerala Assam

B) KeralaAssam

C) KeralAssam

D) KeraAssam

Answer:

Option B

Explanation:

String.Insert() method is used to join two strings.