GIAC
GSSP-NET · Question #13
GSSP-NET Question #13: Real Exam Question with Answer & Explanation
Sign in or unlock GSSP-NET to reveal the answer and full explanation for question #13. The question stem and answer options stay visible for context.
Question
You work as a Software Developer for ABC Inc. The company has several branches worldwide. The company uses Visual Studio .NET 2005 as its application development platform. You are creating an application using .NET Framework 2.0. The application will be used by all the branches of the company. You are using the CompareInfo class for culture-sensitive string comparisons. You write the following code in the application: String s1 = "C rtify"; String s2 = "c rtify"; String s3 = "c rtify"; You need to compare the s1 string with the s2 string and ensure that the string comparison must ignore case. Which of the following code segments will you use to accomplish the task?
Options
- ACompareInfo cmp = CultureInfo.InvariantCulture.CompareInfo;
- BCompareInfo cmp = CultureInfo.InvariantCulture.CompareInfo;
- CCompareInfo cmp = CultureInfo.InvariantCulture.CompareInfo;
- DCompareInfo cmp = CultureInfo.InvariantCulture.CompareInfo;
Unlock GSSP-NET to see the answer
You've previewed enough free GSSP-NET questions. Unlock GSSP-NET for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.