Practice Questions

Question 1

Which of the following should be used if you want to store culture-specific error messages for an application?

A. Embedded resource

B. External resource file

C. Satellite assembly

D. Assembly resource file

A1:

Answer D is correct. An assembly resource file is often the best solution when you need to store localized data that is not directly displayed within the user interface. Answer A is incorrect because an embedded resource is integrated into the application and is difficult to update without redeploying a new version of the application. Answer B is incorrect because an external resource file is typically used to allow integration of resources provided by third-party vendors , rather than the XML-based assembly resource file that is preferred. Answer C is incorrect because satellite assemblies are preferred for data that is displayed within the user interface itself.

Question 2

Which phase of the localization process involves ensuring that culture-specific translations will not require design changes?

A. Globalization

B. Globalizability

C. Localizability

D. Localization

A2:

Answer C is correct. The Localizability phase involves planning to ensure that changes in localization will not require application design changes between versions. Answer A is incorrect because the Globalization phase is used to identify and separate localizable resources from application code. Answer B is incorrect because there is no "Globalizability" phase. Answer D is incorrect because the Localization phase involves the implementation of culture-based customized details identified in the Globalization phase.

Question 3

You are preparing to localize a financial application. Which of the following tasks can be performed by classes in the System.Globalization namespace? [Select all correct answers.]

  • A. Translation of user interface text

  • B. Conversion of currency amounts

  • C. Translation of currency symbols

  • D. Validation of postal codes

A3:

Answers A and C are correct. You can use the System.Globalization namespace to select appropriate user interface text and currency symbols for a specific culture. However, tasks such as converting amounts and validating postal codes must still be performed in your own custom code. Therefore, answers b and d are incorrect.

Question 4

Which of the following statements about cultures is the most correct?

A. Cultures identify local settings such as date and numerical formatting.

B. Cultures identify the user's locale and associated settings.

C. Cultures identify local settings such as alphabetic order.

D. Cultures identify the user's language and text-based formatting details.

A4:

Answer B is correct. A culture is used to identify a user's locale and any associated settings. Answers A, C, and D are all incorrect because they specify only a portion of the possible settings managed by culture-aware applications.

Question 5

You are responsible for the planning of a new globally deployed application. Which of the following are requirements that may be handled through culture-specific localization alone? [Select all that apply.]

  • A. Translating user interface text labels to reflect the user's culture setting.

  • B. Translating currency info into local equivalent values based on the user's culture setting.

  • C. Translating date values into a format suitable to the user's culture setting.

  • D. Controlling the direction of the entire user interface through the mirroring process.

  • E. Controlling the order of data sorting based on the user's culture setting.

A5:

Answers A, C, and E are correct. Culture-aware applications may configure the user interface text labels, date value formats, and alphabetic sort order based on the user's CurrentCulture setting. Answer B is incorrect because the localization process does not directly perform translation between equivalent currency values. Answer D is incorrect because mirroring of the entire user interface requires a call to the SetProcessDefaultLayout Windows API.

Question 6

You are designing a culture-aware application that must reconfigure the user interface for different locales. Which property should you set to ensure correct formatting of currency and numbers in this application?

A. CurrentCulture

B. CurrentUICulture

C. RightToLeft

D. Text

A6:

Answer A is correct. The CurrentCulture property dictates the formatting to be applied to items such as numbers and currency. Answer B is incorrect because the CurrentUICulture property tells the CLR which culture to use when selecting resource files for the user interface itself. Answer C is incorrect because the RightToLeft property controls the direction of text rendering, not its content. Answer D is incorrect because setting the Text property does not provide automatic localization.

Question 7

Which culture designation would be best for an English- (United Kingdom) based application responsible for communicating with two additional system processes running on the same server?

A. en

B. en-GB

C. en-Invariant

D. en-GB-Invariant

E. Invariant

A7:

Answer E is correct. The invariant culture is a culture-independent culture setting used to allow communication with components that are not part of the user interface, such as system processes. Answers A and B are incorrect because en defines the English class itself, and en-GB defines the Great Britain version of English, both of which would be proper for a user interface but not for culture-independent communications with other processes. Answers C and D are incorrect because the invariant culture is unique, specified without additional culture class details.

Question 8

Which of the following is most often used when a form must include culture-aware configuration settings to mirror data presentation order within its controls?

A. Embedded resource

B. External resource file

C. Satellite assembly

D. Assembly resource file

A8:

Answer C is correct. A satellite assembly is used to store user interface configuration settings that vary between cultures, such as formatting and layout. Answer A is incorrect because an embedded resource is compiled within the code and suitable to including common graphical icons and other standard components present in an application. Answer B is incorrect because an external resource file is most often used to include resources provided by third-party vendors. Answer D is incorrect because an assembly resource file is preferred for use with localized data that is not tied directly to the user interface, such as message box text.

Question 9

You are designing an application to support user interfaces in many languages. Which character encoding should you use?

A. ANSI

B. UTF7

C. UTF8

D. UTF16

A9:

Answer D is correct. The .NET Framework natively uses the UTF16 format, also known as Unicode, which provides a single set of 65,000 symbols that supports most of the common languages in the world. By using this encoding, you can cover the most possible languages. Answers A, B, and C are incorrect because they all provide smaller subsets of characters that cannot easily be used for multiple languages.

Question 10

How should you configure a form for mirroring in Visual Studio .NET applications?

A. Set the LeftToRight property to False

B. Set the RightToLeft property to True

C. Set the Mirrored property to True

D. Set the SetProcessDefaultLayout property to False

A10:

Answer B is correct. You should set the RightToLeft property to True in order to configure a form for mirrored presentation. Answers A and C are incorrect because they specify nonexistent properties ( LeftToRight and Mirrored ) rather than the correct property ( RightToLeft ). Answer D is incorrect because SetProcessDefaultLayout is a Windows API used to mirror an entire application's interface and is not part of the .NET Framework's basic settings available within Visual Studio.



Developing and Implementing WindowsR-based Applications with Visual BasicR. NET and Visual StudioR. NET Exam CramT 2 (Exam 70-306)
Developing and Implementing WindowsR-based Applications with Visual BasicR. NET and Visual StudioR. NET Exam CramT 2 (Exam 70-306)
ISBN: N/A
EAN: N/A
Year: 2002
Pages: 188

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net