What should you do?

You need to provide locale-specific services to employees with the application.
You must additionally ensure that you use a unique country identifier that can be used as a key
to access a database record that contains specific information about a country whilst you use the minimum storage for storing the key.
What should you do?

You need to provide locale-specific services to employees with the application.
You must additionally ensure that you use a unique country identifier that can be used as a key
to access a database record that contains specific information about a country whilst you use the minimum storage for storing the key.
What should you do?

A.
CultureInfo.Name should be used as an identifier for a country

B.
CultureInfo.GetHashCode should be used as an identifier for a country

C.
RegionInfo.GetHashCode should be used as an identifier for a country

D.
RegionInfo.Name should be used as an identifier for a country

Explanation:
In the scenario you should make use of the RegionInfo.Name property as this property gets the name or ISO 3166 two-letter country/region code for the current RegionInfo object.
Incorrect Answers:
A: This method should not be used in the scenario as you will only receive the culture name instead of the country name and does not meet the objective. B, C: The usage of the GetHashCode property in the scenario is incorrect as the hash value generated can be used to tell whether the RegionInfo or CultureInfo objects are the same or not.



Leave a Reply 1

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


seenagape

seenagape

I have the same idea. D