Home / MCQ Bank / Computer
Computer File Handling And Input Output In C Sharp

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(); }

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option C • hello goodworld

Related Computer Questions

What is a proc in Ruby? How can you achieve polymorphism in C++? Which part of the try-catch block is always fully executed? What will be the output of the following Python code? import turtle t=turtle.Pen() t.color(1,1,1) t.begin_fill() for i in range(0,3): t.forward(100) t.right(120) t.end_fill() What will be the lexicographical order of combinations of 2 elements each formed from the array arr={1,2,3}?