What is output of the given set of Code? class Program { static void Main(string[] args) { String c = "i love Csharp"; bool a; a = c.StartsWith("I"); Console.WriteLine(a); Console.ReadLine(); } }
Back to Questionstrue
false
0
1
StartsWith() method is case sensitive “i” and “I” are treated differently, hence false is stored in a.
Answers Posted
PostedBy By: prakash.shrestha@inspopindia.com, at 04:13 AM on 16-July-2019
Answer Posted: B
Explanation: Startwith method is case sensitive.
Result: Correct
PostedBy By: Saikiran K, at 04:19 AM on 20-April-2019
Answer Posted: B
Explanation: f
Result: Correct
PostedBy By: Saikiran K, at 04:20 AM on 18-April-2019
Answer Posted: B
Explanation: TEST
Result: Correct