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 Questions
A)

true

B)

false

C)

0

D)

1

 

Author Explanation :

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

Back to Questions

© Copyright 1997 - 2019 | www.bestdotnettraining.com | www.deccansoft.com | All Rights Reserved.
 
Bestdotnet google plus
Enquiry Now