adplus-dvertising
frame-decoration

Question

What will be the output of given set of code?
{
 delegate string f(string str);
 class sample
 {
     public static string fun(string a)
     {
         return a.Replace('k', 'o');
     }
 }
 class Program
 {
     static void Main(string[] args)
     {
         f str1 = new f(sample.fun);
         string str = str1("Test Ykur C#.NET Skills");
         Console.WriteLine(str);
         Console.ReadLine();
     }
 }
}

a.

Test Ykur C#.NET Skills

b.

Test Ykour C#.NET Skills

c.

Test Your C#.NET Skills

d.

Test ur C#.NET Skills

Posted under C# programming

Answer: (c).Test Your C#.NET Skills

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What will be the output of given set of code?