Home / MCQ Bank / Computer
Computer Arrays And Strings In C Sharp

What will be the output of the following C# code? static void Main(string[] args) { string s1 = "Hello" + " I " + "Love" + " ComputerScience "; Console.WriteLine(s1); Console.ReadLine(); }

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option B • Hello I Love ComputerScience

Related Computer Questions

ON UPDATE CASCADE ensures which of the following? Which of the following is not a valid C++ standard library container? What will be the output of the following C# code? static void Main(string[] args) { int [] a = {1, 2, 3, 4, 5}; fun(a); Console.ReadLine(); } static void fun(params int[] b ) { for (int i = 0; i < b.Length; i++) { b[i] = b[i] * 5 ; Console.WriteLine(b[i] + ""); } } How many instances are allowed by map and set while inserting an element into container? Which of the following is a standard file format language for web documents?