πŸ“Š C#
Q. What will be the output of the following C# code?
Code:
using System;

class Program {
  static void Main(string[] args) {
    String s1 = "Hello";
    String s2 = "IncludeHelp";
    String s3 = s1;
    Console.WriteLine(s1.Equals(s3) + "  " + s2.CompareTo(s1));
  }
}
  • (A) Error
  • (B) True True
  • (C) True False
  • (D) True 1
πŸ’¬ Discuss
βœ… Correct Answer: (D) True 1

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
167
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
94%
Success Rate