Mar 2016 updated: Pass4sure Microsoft 70-518 practice 76-90

70-518 Royal Pack Testengine pdf

100% Actual & Verified — 100% PASS

Unlimited access to the world's largest Dumps library! Try it Free Today!

Get it now →

Product Description:
Exam Number/Code: 70-518
Exam name: PRO: Design & Develop Wndws Apps Using MS .NET Frmwrk 4
n questions with full explanations
Certification: Microsoft Certification
Last updated on Global synchronizing

Free Certification Real IT 70-518 Exam pdf Collection

Question No. 76

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 <supportedRuntime> element for the WPF application to the .NET Framework 3.5. 

B. Change the <supportedRuntime> element for the XBAP application to the .NET Framework 3.5. 

C. Apply the AllowPartiallyTrustedCallersAttribute attribute to the utility assembly. 

D. Apply the AllowPartiallyTrustedCallersAttribute attribute to the XBAP application. 

Answer:


Question No. 77

You are designing a Windows Presentation Foundation (WPF) client application from which employees will access a Web service. 

Business partners will access the Web service by using proprietary client applications. 

You need to recommend a solution for ensuring the integrity of data in the system. 

What should you recommend? 

A. Secure the Web service by using SSL. 

B. Implement data validation at the service layer and reject invalid data. 

C. Implement data validation on the client and reject invalid data. 

D. Encrypt data while storing it in the database. 

Answer:


Question No. 78

You are designing a Windows Presentation Foundation (WPF) application that connects to a data access layer on a server. 

You have the following requirements for all security-related exceptions: 

. Exceptions that occur in the data access layer must be handled in a single exception handler in the WPF application. . Exceptions must pass customized messages back to the WPF application. 

You need to recommend an approach for creating new exception classes in the data access layer. 

From which class should you inherit? 

A. System.ApplicationException 

B. System.AccessViolationException 

C. System.InvalidOperationException 

D. System.Security.SecurityException 

Answer:


Question No. 79

You are designing a Windows Presentation Foundation (WPF) application. 

The WPF application must always display real-time status information while the user is working in the WPF application. 

You need to recommend a container for displaying the status information. 

Which container should you recommend? 

A. a message box 

B. a console window 

C. a modeless window 

D. a modal window 

Answer:


Question No. 80

You are analyzing an application that uses Microsoft .NET Framework 4 and Microsoft SQL Server 2008. 

The application is used to maintain an inventory database and is accessed from several remote Windows client applications. The application frequently updates multiple rows in a database table by using a DbDataAdapter object. 

Users report that the application runs slowly during peak business hours. 

When large number of records are changed by multiple users, you discover the following: 

The CPU utilization of the client applications is normal. 

The network utilization increases slightly. 

The CPU utilization of the database server remains close to the normal average for a day. 

You need to resolve the performance issue. 

What should you do? 

A. Disable batch updates. Modify the client application to perform a single update. 

B. Insert a random time interval between updates. 

C. Remove any limit on batch update sizes. Modify the client application to perform a single update. 

D. Move the update method calls to a separate BackgroundWorker thread. 

Answer:


Question No. 81

You are designing a Windows Presentation Foundation (WPF) application. 

The WPF application must always display real-time status information while the user is working in the WPF application. 

You need to recommend a container for displaying the status information. 

Which container should you recommend? 

A. a modeless window 

B. a console window 

C. a message box 

D. a modal window 

Answer:


Question No. 82

You are creating a Windows Presentation Foundation (WPF) application by using Microsoft .NET Framework 4 and Microsoft SQL Server 2008. 

You create a window that allows users to search for products that match a given name. Search results are displayed when the user types each letter of the product name. 

You use a method named FindProducts to obtain the list of products. 

Users report that when they type a letter of the product name, the window stops responding for a varying amount of time. While the window stops responding, users cannot type more letters. The window stops responding even when the search generates few results. 

You need to ensure that the window responds while users type a name. 

What should you do? 

A. Cache the results returned by the FindProducts method for each set of criteria. 

B. Use a VirtualizingStackPanel class to display the list of client applications that match the given name. 

C. Create a delegate for the FindProducts method. Pass the delegate to the Invoke method of the Dispatcher property of the window. 

D. Before you call the FindProducts method, call the Freeze method on the Brush object that is used as the Background property of the window. 

Answer:


Question No. 83

You are designing a Windows application by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010. 

The application retrieves data from multiple heterogeneous data sources. The retrieved data is aggregated into a single record set 

You need to ensure that the application takes advantage of new multi-core server processors. 

Which technology should you use? 

A. LINQ 

B. PLINQ 

C. ADO.NET DataSet 

D. ADO.NET Typed DataSet 

Answer:


Question No. 84

You design a Windows Presentation Foundation (WPF) application that interacts with a Windows Communication Foundation (WCF) Web service. The WCF Web service throws exceptions of type Exception. 

The WPF application crashes when the WCF Web service throws an exception. 

You need to recommend an error-handling strategy that allows users to submit updated data to the WCF Web service without restarting the WPF application. 

What should you recommend? 

A. Modify the Web service to throw custom exceptions derived from the Exception class. 

B. Modify the Web service to throw exceptions of type InvalidOperationException. 

C. Modify the Web service to throw exceptions of type FaultException. 

D. Modify the Web service to throw custom exceptions derived from the ApplicationException class. 

Answer:


Question No. 85

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 ArgumentNullException 

Throw e 

When testing the application, you discover that all ArgumentNullExceptions that occur in the middle tier do not contain accurate stack trace information. 

What should you do? 

A. Create an ArgumentNullException handler in the UI tier. 

B. Use a DispatcherUnhandledExceptionEvent handler in the UI tier. 

C. Use a DispatcherUnhandledExceptionEvent handler in the middle tier. 

D. Remove the exception parameter from the ArgumentNullException handler. 

Answer:


Question No. 86

You are designing a Windows Presentation Foundation (WPF) application that uses .NET Framework 4. The application uses a subset of the functionality provided by a third-party COM component that will be replaced later. 

The application developers must have access to only the required subset of functionality. 

You need to recommend a solution that meets the requirements. 

Which two actions should you recommend? (Each correct answer presents part of the solution. Choose two.) 

A. Create an adapter assembly that exposes the entire functionality of the COM component. 

B. In the adapter assembly, use an embedded interop reference. 

C. In the adapter assembly, use a standard interop reference. 

D. Create an adapter assembly that exposes the required subset of the COM component functionality. 

Answer: CD 


Question No. 87

You are designing an application by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010. The application will store data that includes a time and date stamp. 

The middle tier of the application is implemented by using Windows Communication Foundation (WCF). 

The middle tier connects to geographically separated database servers. You need to ensure that the application meets the following requirements: 

. Data stored contains time and date information local to the database server. 

. Data stored contains Universal Coordinated Time (UTC). 

Which class should you use? 

A. DateTime 

B. DateTime Offset 

C. TimeZonelnfo 

D. TimeZone 

Answer:


Question No. 88

You are designing a distributed application that will be deployed to 5,000 users worldwide. 

Servers on five continents will host the Web services and the Microsoft SQL Server 2008 databases that support the application. 

You have the following requirements: 

Collect information about all errors associated with the application. 

Store and view all error information in a centralized location. 

Minimize the network bandwidth required for the transfer of error information. 

You need to recommend a strategy for reporting error information. 

Which strategy should you recommend? 

A. Write error messages to the SQL Server databases. Synchronize the databases by using merge replication. 

B. Write error messages to the event logs on the local computers. Use Windows Error Reporting to view the error information. 

C. Write error messages to the event logs on the local computers. Use Windows Management Instrumentation (WMI) to view the error information. 

D. Write error messages to the SQL Server databases. Synchronize the databases by using transactional replication. 

Answer:


Question No. 89

You are designing an update to an existing Windows Presentation Foundation (WPF) application. You plan to use Microsoft Visual Studio 2010. The updated WPF application will require a specific version of a third-party component. 

You have the following requirements: 

. Deploy the update by using Windows Installer. 

. Update the WPF application only if the required version of the third-party component is present on the client computer. 

You need to recommend configuration settings for the application installer. 

Which property should you recommend be set? 

A. The RemovePreviousVersions property of the Setup Project 

B. The Version property of the Setup Project 

C. The Version property of the .NET Launch Condition 

D. The Condition property of a new Launch Condition 

Answer:


Question No. 90

You are designing a Windows Presentation Foundation (WPF) application by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010. 

The application contains a COM component. 

You plan to deploy the application to several client computers by using read-only media. 

You need to ensure that the COM component is registered during deployment of the application. 

Which deployment technology should you use? 

A. XCopy 

B. Microsoft Windows Installer (MSI) 

C. ClickOnce along with full trust 

D. ClickOnce along with partial trust 

Answer: