Lesson Review

The following questions are intended to reinforce key information presented in this lesson. The questions are also available on the companion CD if you prefer to review them in electronic form.

NOTE Answers

Answers to these questions and explanations of why each choice is right or wrong are located in the "Answers" section at the end of the book.

1. Which of the following lines of code should be used to format data appropriately for Germany?

System.Threading.Thread.CurrentThread.CurrentUICulture = New _ System.Globalization.CultureInfo("de-DE")

System.Threading.Thread.CurrentThread.CurrentUICulture = New _ System.Globalization.CultureInfo("de-DE");

Me.CurrentUICulture = New System.Globalization.CultureInfoC'de-DE") // C#

this.CurrentUICulture = New System.Globalization.CultureInfoC'de-DE");

System.Threading.Thread.CurrentThread.CurrentCulture = New _ System.Globalization.CultureInfo("de-DE")

System.Threading.Thread.CurrentThread.CurrentCulture = New _ System.Globalization.CultureInfo("de-DE");

Me.CurrentCulture = New System.Globalization.CultureInfo("de-DE") // C#

this.CurrentCulture = New System.Globalization.CultureInfo("de-DE");

2. Given a form that contains a Label named Label1 and a Button named Button1, all with default settings, which of the following must be done to display the entire form and all controls in a right-to-left layout with right-to-left text display? Choose all that apply, and choose the fewest options necessary to accomplish the task.

A. Set the Label1.RightToLeft property to True.

B. Set the Button1.RightToLeft property to True.

C. Set the Form1.RightToLeft property to True.

D. Set the Form1.RightToLeftLayout property to True.

0 0

Post a comment