?
String comparison in Visual basic is case-sensitive.
Answer & Solution
Correct Answer:
Option
A
In
For example, if you have the strings "Hello" and "hello", a case-sensitive comparison would consider these strings to be different.
To perform a case-insensitive string comparison, you would need to use appropriate methods or functions, such as
Therefore, the correct option is Option A: True.
Visual Basic, string comparison is case-sensitive. This means that when you compare two strings, the comparison takes into account the exact letter case of each character in the strings.
For example, if you have the strings "Hello" and "hello", a case-sensitive comparison would consider these strings to be different.
To perform a case-insensitive string comparison, you would need to use appropriate methods or functions, such as
String.Compare with the appropriate StringComparison enumeration value (e.g., StringComparison.OrdinalIgnoreCase).
Therefore, the correct option is Option A: True.
Join the Discussion
Login to post a comment or share your explanation.
Login