Sail E0 Webinar
Question
What will be the output of the code snippet?class Program {     static void Main(string[] args)     {         String s1 = "Hello World";         String s2 = s1.Substring(0, 4);         Console.WriteLine(s2);         Console.ReadLine();     } }
Options:
A .  Hello
B .  Hell
C .  H
D .  Hello World
Answer: Option B





Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

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

Latest Videos

Latest Test Papers