web analytics

Free Download Microsoft 70-518 PDF and VCE Dumps Help You 100% Pass Exam (41-50)

QUESTION 41
You are designing an application by using Windows Presentation Foundation (WPF) and Microsoft NET Framework 4. The user interface (UI) tier of the application will be implemented by using WPF. The middle tier of the application will be implemented by using Windows Communication Foundation (WCF). The middle tier will contain several methods that update data in a remote database. The middle tier will also contain a long-running method named Process Data. The Process Data method performs database operations and can take several minutes to complete. You need to ensure that the UI of the application can continue to call other methods while the Process Data method is running. What should you do?

A.    Implement the Process Data method by using Windows Workflow Foundation (WF).
B.    Implement the Process Data method by using the Invoke method on the Dispatcher class.
C.    Call the Run method of the Dispatcher class before invoking the Process Data method
D.    Call the Do Events method of the Application class before invoking the Process Data method

Answer: A

QUESTION 42
You are developing an application by using Windows Forms and Microsoft NET Framework 4. The user interface (UI) of the application can be resized. You need to ensure that the images in the application scale to the entire height and width of the UI without degradation. What should you do?

A.    Convert the images to PNG format.
B.    Use a Picture Box control. Set the Size Mode property to use auto-sizing.
C.    Use an Element Host control. Convert the images to XAML-based images.
D.    Use a Picture Box control. Add events to resize the control based on the size of the main UI form.

Answer: C

QUESTION 43
You are designing an application by using Microsoft NET Framework 4 and Microsoft Visual Studio 2010. Your development team consists of designers and C# developers.
You need to ensure that the application meets the following requirements:
– Kit allows separation of user interface (UI) code and business logic.
– Kit allows the UI to be data-bound without requiring a code-behind file.
Which technology should you use?

A.    Windows Forms along with Model View Presenter (MVP)
B.    Windows Forms without Model View Presenter (MVP)
C.    Windows Presentation Foundation (WPF) along with Model-View-View Model (M-V-VM)
D.    Windows Presentation Foundation (WPF) without Model-View-View Model (M-V-VM)

Answer: C

QUESTION 44
You are upgrading a stand-alone Windows Presentation Foundation (WPF) application and an XAML browser application (XBAP) to Microsoft NET Framework 4. You plan to add NET 4 types and members to both applications. Both applications consume a common utility assembly that modifies files on a local file system. The utility assembly requires full trust. You need to ensure that both applications can use the common utility assembly without any security-related exceptions. What should you do?

A.    Change the <supported Runtime> element for the WPF application to the NET Framework 35
B.    Change the <supported Runtime> element for the XBAP application to the NET Framework 35
C.    Apply the Allow Partially Trusted Callers attribute to the utility assembly
D.    Apply the Allow Partially Trusted Callers Attribute to the XBAP application

Answer: C

QUESTION 45
You are creating a Windows application by using Microsoft NET Framework 4 and Microsoft Visual Studio.
The business logic layer of the application is implemented by using Windows Communication Foundation (WCF).
You create a WCF service that contains a single operation to upload large binary data files.
You configure the binding of the WCF service to enable data streaming.
You need to ensure that the WCF service operation receives binary data files along with a string parameter that contains the description of each file.
You create a service operation that receives a single parameter.
What should you do next?

A.    Implement the service parameter as a Fertilizable class that contains a property for the description of the file and another property for the content of the data file
B.    Implement the service parameter as a Data Contract class that contains a Data Member property for the description of the file and another Data Member property for the content of the data file
C.    Implement the service parameter as a Message contract class that contains a Message Header property for the description of the file and a Message Body Member property for the content of the data file
D.    Implement the service parameter as a Message Contract class that contains a Message Body Member property for the description of the file and another Message Body Member property for the content of the data file

Answer: C

QUESTION 46
You are designing an n-tier Windows application by using Microsoft .NET Framework 4, Microsoft Visual Studio 2010, and Microsoft SQL Server 2008. The application will replace an existing client/server application. The existing application was created by using Microsoft Visual Basic 6.0 and consists of a series of COM components that access a SQL Server database.
You plan to move the existing COM components into a Windows Communication Foundation (WCF) tier.
You need to ensure that the COM components can be replaced without impacting the existing user interface (UI) tier.
You also need to ensure that the COM components can be replaced separately.
What should you do?

A.    Create a common assembly on the UI tier of the new application to interface with the COM components.
B.    Create a common assembly on the WCF tier of the new application to interface with the COM components
C.    Use NET COM Interpol on the client tier to interact directly with the COM components until they are replaced by the managed code
D.    Convert the Visual Basic 6.0 source code to managed code by using the Visual Studio converters.
Use these code components on the client/server application until they are replaced individually with the new permanent managed code functionality.

Answer: B

QUESTION 47
You are designing a Windows Presentation Foundation (WPF) application by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010. The application will consist of a user interface (UI) tier and a middle tier. The middle tier will be implemented by using Windows Communication Foundation (WCF).
You plan to design the exception handling strategy for the application. Each method in the middle tier will contain the following catch block. Catch e As Argument Null Exception Throw When testing the application, you discover that all Argument Null Exceptions that occur in the middle tier do not contain accurate stack trace information.
What should you do?

A.    Create an Argument Null Exception handler in the UI tier.
B.    Use a Dispatcher Unhandled Exception Event handler in the UI tier.
C.    Use a Dispatcher Unhandled Exception Event handler in the middle tier
D.    Remove the exception parameter from the Argument Null Exception handler

Answer: D

QUESTION 48
You are designing a Windows client application by using Microsoft NET Framework 4 and Microsoft Visual Studio 2010. The business logic layer of the application is implemented by using Windows Communication Foundation (WCF).
You write the following code segment in the middle tier:
<ServiceContractO> -Public Interface lWcf Service
<OperationContractO> —
<FaultContract(GetType(ApplicationException))> -Sub
ProcessData(ByVal d As Data)End Interface
The Process Data service method is a long-running operation.
You need to ensure that the application meets the following requirements:
– Users can continue to use the user interface while the Process Data service method is running.
– Message delivery is reliable.
What should you use?

A.    A Session full One-Way operation on Process Data with a proxy-based synchronous class invocation
B.    A Session full Request-Reply operation on Process Data with a proxy-based asynchronous invocation
C.    A Session less One-Way operation of Process Data with a proxy-based synchronous class invocation
D.    A Session less Request-Reply operation on Process Data with a proxy-based asynchronous invocation

Answer: D

QUESTION 49
You are designing an application by using Microsoft.NET Faremwork Visual Studio 2010. You plan to design an instrumentation stategy for the application.
You need to ensure that the strategy meets following requirements:
Captures detaild performance information. Enables or disables diagnostic messages by using an application configuration option without requiring the application to restart.
What should you design?

A.    a customer trace listener
B.    a custom performance counter
C.    an override to the Debug class
D.    an override to the EventLog class

Answer: B

QUESTION 50
You are making a Windows software by employing Microsoft .Net Framework 4 and Microsoft Visual Studio 2010.The business logic layer of the software is applied by using Windows Communication Groundwork(WCF). You produce a WCF services that consists of a single operation to upload big binary information files.
You configure the binding of the WCF support to allow information streaming.
You need to guarantee that the WCF service operation gets binary info files along with a string parameter that contains the description of each file.
You generate a service operation that gets a single parameter.
What should you do following?

A.    Carry out the support parameter as a Serializable class that consists of a house for the description of the file and an additional residence for the content of the info file
B.    Put into action the support parameter as a DataContract class that is made up of a DataMember house for the description of the file and yet another DataMember residence for the content material of the info file.
C.    Put into action the service parameter as a MessageContract class that is made up of a MessageHeader property for the description of the file and a MessageBodyMember house for the material of the data file.
D.    Implement the services parameter as a MessageContract class that is made up of a MessageBodyMember home for the description of the file and yet another MessageBodyMember house for the content of the info file.

Answer: C

Free Download Microsoft 70-518 PDF and VCE Dumps Help You 100% Pass Exam