C# Programming
Casual Mode - Take your time!
1 / 15
Correct
0
Incorrect
0
Score
0%
Multiple Choice
What will be the output of the following program?
using System; class Program
{
static void Main(string[] args)
{
String[] s = new String[2]; s[0] = Hello; s[1] = How are you!; foreach (string name: s)
{
Console.WriteLine( + name);
}
Console.ReadLine();
}
}
- HelloHow are you
- Hello
- It will not compile
- It will give exception
- None of the above