Vidyalelo
C# Programming · Q41

File Handling and Input Output in C Sharp

Programming · C# Programming · question 41

Q41

What will be the output of the following C# code snippet? static void Main(string[] args) StringBuilder sb = new StringBuilder("hello world"); sb.Insert(6, "good"); Console.WriteLine(sb); Console.ReadLine();

A.
hello 6world
B.
hello good world
C.
hello goodworld
Answer
D.
None of the above

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board