PrepAway - Latest Free Exam Questions & Answers

Which code segment is used to display all currencies in the format used by Egypt?

You are working as an application developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. Domain.com uses Visual Studio 2005 as an application platform. Domain.com consists of a Development department. You as the developer of Domain.com use a client computer named Certkiller -WS009 as developing collateral. You are busy to develop a Microsoft Windows Forms application that has localized resources for the Arabic language.
Which code segment is used to display all currencies in the format used by Egypt?

PrepAway - Latest Free Exam Questions & Answers

A.
Thread.CurrentThread.CurrentUICulture = new CultureInfo["ar"]

B.
Thread.CurrentThread.CurrentCulture = new CultureInfo["ar"]

C.
Thread.CurrentThread.CurrentUICulture = new CultureInfo["ar-EG"]

D.
Thread.CurrentThread.CurrentCulture = new CultureInfo["ar-EG"]

Explanation:
The CurrentCulture property specifies the culture to use for formatting numbers, currencies, dates, and time. The culture ar-EG is for the Arabic language inEgypt.

Incorrect Answers:
A, B, C: The CurrentUICulture identifies the culture to be used by a resource manager, which load localized resources. Furthermore, you should not specify the ar to the constructure of CultureInfo. The as value represents a neutral for the Arabic language.


Leave a Reply