You create an application that stores information about your customers who reside in various regions

You create an application that stores information about your customers who reside in various
regions. You are developing internal utilities for this application.
You need to gather regional information about your customers in Canada.
Which code segment should you use?

A. foreach (CultureInfo culture in
    CultureInfo.GetCultures(CultureTypes.SpecificCultures)) { // Output the region
    information...}
B. CultureInfo cultureInfo = new CultureInfo(“CA”); // Output the region information...
C. RegionInfo regionInfo = new RegionInfo(“CA”); // Output the region information…
D. RegionInfo regionInfo = new RegionInfo(“”);if(regionInfo.Name == “CA”) {
    // Output the region information...}


Answer: C

No comments:

Post a Comment