Vidyalelo
C# Programming · Q46

Miscellaneous in C Sharp

Programming · C# Programming · question 46

Q46

What will be the output of the following C# code snippet? class Program static void Main(string[] args) String c = "Hello i love Csharp"; Boolean var; var = c.StartsWith("hello"); Console.WriteLine(var); Console.ReadLine();

A.
True
B.
False
Answer
C.
1
D.
Run time error

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board