PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which code segment should you insert at line 11?

You are developing an outofbrowser application by using Silverlight 4. The application contains the following code segment. (Line numbers are included for reference only.)

01 public partial class App : Application
02 {
03 public App()
04 {
05 this.Startup += this.Application_Startup;
06 InitializeComponent();
07 }
08 void Application_Startup(object sender, StartupEventArgs e)
09 {
10 this.RootVisual = new MainPage();
11
12 }
13 }

You need to ensure that when a new version of the application is available, it is automatically installed and the user is notified.
Which code segment should you insert at line 11?

which of the following steps should you take so that the project team members cannot update the tasks that hav

You work as a Project Manager of the HHN Project of company.com Inc. You are compiling a P&L Statement for your project and you have asked all of the project team members to enter their time through Project Center on any tasks they have finished. Now that you are ready to submit the time for all of the reported tasks in the Project Center, which of the following steps should you take so that the project team members cannot update the tasks that have been reported?

Which code segment should you insert at line 11?

You are developing a Silverlight 4 application. The application contains the following code segment. (Line numbers are included for reference only.)

01 public partial class App : Application
02 {
03 public App()
04 {
05 this.UnhandledException += this.AppUnhandledException;
06 InitializeComponent();
07 }
08
09
private void AppUnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
10 {
11
12 }
13 }
You need to ensure that unhandled exceptions in the application are prevented from being thrown to the page that hosts the application. Which code segment should you insert at line 11?

Which of the following is the most likely cause of the problem?

Sam works as the Project Administrator for company.com Inc. He has created a security template for the project team leaders group. The project manager asks Sam to change some values within the security template for the project team leaders group. Sam agrees and makes the changes. The project manager reports that the members of the project team leaders groups are not able to use the new permissions added by Sam to the template. Which of the following is the most likely cause of the problem?

Which XAML fragment or code segment should you use?

You are developing a browser hosted application by using Silverlight 4. The application runs in partial trust and uses the copy and paste functionality.
The application contains the following XAML fragment.
<TextBox x:Name=”textBoxClipBoard” />
You need to retrieve the contents of the Clipboard and display the contents in the TextBox. Which XAML fragment or code segment should you use?

Which code segment should you use?

You are developing a Silverlight 4 application. The Web page of the application contains a Text Box that has the txtTime ID. You define the following JavaScript function on the Web page.
function ShowTime(strTime) {
document.getElementById(‘txtTime’).value = strTime;
}
You need to pass the current time to the ShowTime function from Silverlight. Which code segment should you use?