1What is the output of the following program?Console.WriteLine(" trim me ".Trim().Length);A5B9C7D11View AnswerDiscussWorkspaceReportSaveEasy
2What is the output of the following program?Console.WriteLine("banana".IndexOf('n'));A3B4C2D1View AnswerDiscussWorkspaceReportSaveEasy
3What is the output of the following program?Console.WriteLine("a,b,c".Split(',').Length);A2B3C5D1View AnswerDiscussWorkspaceReportSaveEasy
4What is the output of the following program?Console.WriteLine("Hello".ToLower());AhelloBhELLOCHelloDHELLOView AnswerDiscussWorkspaceReportSaveEasy
5Strings in C# are immutable. This means:AMethods like ToUpper return a new string instead of changing the originalBStrings are value typesCStrings cannot be assignedDStrings cannot be comparedView AnswerDiscussWorkspaceReportSaveEasy