Sail E0 Webinar
Question
Choose Output for the following set of code :
static void Main(string[] args){    string s1 = "Hello" + " I " + "Love" + " ComputerScience ";    Console.WriteLine(s1);    Console.ReadLine();}
Options:
A .  HelloILoveComputerScience
B .  Hello I Love ComputerScience
C .  Compile time error
D .  Hello
Answer: Option B


Here '+' defined operator works as concatenation for strings.
Output : Hello I Love ComputerScience.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

More Questions on This Topic :


Latest Videos

Latest Test Papers