Sail E0 Webinar
Question
What does the given code set specifies?public static int Compare(string strA, string strB)
Options:
A .  Comparison is case and culture sensitive
B .  Two strings A and B are compared with each other
C .  Output is : >0 for (A > B),
D .  All of the mentioned
Answer: Option D


Compares the string referred to by strA with strB. Returns greater than zero if strA is greater than strB, less than zero if strA is less
than strB, and zero if strA and strB are equal. The comparison is case and culture-sensitive



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers