PrepAway - Latest Free Exam Questions & Answers

Author: admin

What should you do toaccomplish this goal without interrupting the service?

You create a Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5.
The WCF service accepts service requests from different partner applications.
One of the partner applications occasionally receives faults.
You need to identify why the service is generating faults.
You must accomplish this goal without interrupting the service.
What should you do?

What should you do to ensure that the users can use the application?

You create a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
You perform the following two tasks:
* Use a digital certificate that is generated by an internal certificate authority (CA) to sign the application.
* Store the application files on a central Web site.
You instruct the users to access the Web site and start the application by using the ClickOnce technology. The users report that their attempts to start the application fail.
You need to ensure that the users can use the application.
What should you do?

What should you do to ensure that the following requirements are met?

You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
You write the following XAML code fragment.
(Line numbers are included for reference only.)

01 <DockPanel>
02 <DockPanel.Resources>
03 <Style TargetType="Button">
04 <Style.Triggers>
05
06 </Style.Triggers>
07 </Style>
08 </DockPanel.Resources>
09 <Button Content="Cut">
10 <Button.Triggers>
11
12 </Button.Triggers>
13 </Button>
14 </DockPanel>

You need to ensure that the following requirements are met:
* When the mouse is over the button, the foreground of the button turns yellow.
* When the button is pressed, the foreground of the button turns green.
What should you do?

What should you do to ensure that the content text of each button is displayed?

You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
The application contains the following elements:
* A button that has the text content "OK"
* A button that has the text content "Apply"
* A button that has the text content "Cancel"
* A custom control template that updates the appearance of Button controls
When you apply the custom control template to the three buttons, the buttons appear identical and their content text is not displayed.
You need to ensure that the content text of each button is displayed. What should you do?

What should you do to provide feedback to the user as early as possible?

You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
The application includes the following features:
* A data provider control.
* Twenty TextBox controls bound to the data provider.
* A Submit button that saves the TextBox values to a data source.
Business rules state that the value entered in the UserName TextBox control cannot be the same as any other UserName values in the data source.
You need to provide feedback to the user as early as possible when a duplicate value is entered in the UserName TextBox control.
What should you do?

What should you do to ensure that the assembly functions without propagating errors in both standalone?

You create an assembly by using Microsoft .NET Framework 3.5.
The assembly creates a new text file in the root of the C: drive. The assembly will be used in a Windows Presentation Foundation standalone application. The assembly will also be used in a Windows Presentation Foundation XAML Browser Application (XBAP).
The assembly contains the following code segment.
(Line numbers are included for reference only.)

01 public void Save()
02 {
03
04 FileStream stream = File.Create("c:newfile.txt");
05 try
06 {
07 StreamWriter writer = new StreamWriter(stream);
08 try
09 {
10 writer.WriteLine("Bew line in text file");
11 }
12 finally
13 {
14 writer.Dispose();
15 }
16 }
17 finally
18 {
19 stream.Dispose();
20 }
21
22 }

You need to ensure that the assembly functions without propagating errors in both standalone and XBAP applications.
What should you do?