You need to generate a report that lists language codes and region codes. Which code segment should you use?

You need to generate a report that lists language codes and region codes.
Which code segment should you use?

A. foreach (CultureInfo culture in
    CultureInfo.GetCultures(CultureTypes.SpecificCultures)) {
    // Output the culture information...}
B. CultureInfo culture = new CultureInfo(“”); CultureTypes types = culture.Culture Types;
    // Output the culture information...
C. foreach (CultureInfo culture in
    CultureInfo.GetCultures(CultureTypes.NeutralCultures)) {
    // Output the culture information...}
D. foreach (CultureInfo culture in
    CultureInfo.GetCultures(CultureTypes.ReplacementCultures)) {
    // Output the culture information...}


Answer: A 

No comments:

Post a Comment