Exam 70-506 : Silverlight 4, Development Part – 5

Question: Resource Files are used to store the data in which of the following conditions?

  1. When you are not concerned about application startup time.
  2. When you want to simplify application distribution complexity by reducing the number of file dependencies.
  3. When you don’t need to update the resource file after it is compiled into an assembly.
  4. All of the above.

Correct Answer: 4


Question: If you are supporting multiple languages in silverlight. It is recommended to use automatic layout for element that contains localized text. This involves which of the following?

  1. Do not set the Height and Width properties of your TextBlock control. Let the Silverlight runtime decide the size automatically. You may also set either the Height or the Width property and let Silverlight calculate the other property.
  2. Avoid the Canvas control, which uses hard-coded sizes and positions. Instead, use the StackPanel, the Grid control, or other panel elements that support automatic layout.
  3. For long strings, set TextWrapping=”Wrap” on TextBlock controls.
  4. All of the above.

Correct Answer: 4


Question: In the Below XAML code, [code] [/code] Which of the following is correct?

  1. ‘NA’ will be displayed if the ExpiryDate is null.
  2. ‘NA’ will be displayed if the ExpiryDate is less than current date.
  3. ExpiryDate value is displayed in the ‘MM-dd-yyyy’ format
  4. Throws a compile-time error.
  5. Both 1 and 3

Correct Answer: 5


Question: MouseWheel feature is supported for which of the following?

  1. On Windows OS, In-Browser Mode
  2. On Windows OS, Full-Screen Mode,
  3. On Windows OS, Out-of-Browser Mode
  4. All of the above.

Correct Answer: 4


Question: public partial class MainPage : UserControl
{
string result = "";
/// <summary>
/// Creates a new instance.
/// </summary>
public MainPage()
{
InitializeComponent();
ImplementingThread();
}
private void ImplementingThread()
{
System.Threading.Thread thread = new System.Threading.ThreadDoWork);
thread.Name = "ThreadDemo";
thread.IsBackground = true;
thread.Start(1000);
}
void DoWork(object sleepMillisecond)
{
System.Threading.Thread.Sleep((int)sleepMillisecond);
result += "The thread terminated!rn";
txtMsg.Text = " Some message" + result;
}
}

  1. Executes successfully
  2. Throws a compile time error
  3. Throws a System.UnauthorizedAccessException: Invalid cross-thread access error.
  4. None of the above.

Correct Answer: 3

Tagged , . Bookmark the permalink.

Leave a Reply