web analytics

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

QUESTION 61
You are developing a Windows application by using Microsoft .NET Framework 4, Microsoft Visual Studio 2010, and Microsoft SQL Server 2008. The application will store data in a SQL Server database instance. You plan to use the Code Generation technology to develop data entities. You need to ensure that the following requirements are met:
– When the application runs, a database must be created if it does not alreadyexist.
– When the database schema changes, data entities must be added dynamically.
Which data access technology should you use?

A.    LINQ to SQL
B.    ADO.NET Data View
C.    ADO.NET Typed DataSets
D.    ADO.NET Entity Framework

Answer: A

QUESTION 62
You are developing a Windows application by using Microsoft .NET Framework 4.
You plan to design a diagnostic logging strategy that will be used in a production environment.
You need to ensure that the strategy meets the following requirements:
– Enables or disables diagnostic messages by using an application configuration option.
– Changes the level of detail in the diagnostic messages without recompiling the application.
Which class should you use?

A.    Trace
B.    Debug
C.    Contract
D.    EventLog

Answer: A

QUESTION 63
You are updating a Windows desktop client application that was created by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010.
The application displays data derived from several database queries. The display takes a long time to update.
The application currently uses a BackgroundWorker thread and a Parallel.ForEach statement on that thread.
Users have requested a modification to the program that would allow them to interrupt the display of data and begin processing a new and different query.
You decide to provide a new Stop button on the user interface (UI) to allow the user to terminate the current data display and initiate the new query.
The main UI thread must be notified when the current data processing is terminated so that the new query can be started.
You need to implement the Stop button event handler.
What should you do?

A.    Use the DoWork handler of the worker thread and test a shared status value.
Use a break statement to terminate the Parallel.ForEach loop.
B.    Use the DoWork handler of the worker thread and test a shared status value.
Use a loopStatus.Stop() statement to terminate the Parallel.ForEach loop.
C.    Use the DoWork handler of the worker thread and test a shared status value.
Use the Thread.AbortQ statement to terminate the worker thread.
Start a new BackgroundWorker thread from the main UI thread.
D.    Use a CancelAsync() function to cancel the worker thread.
In the Parallel.ForEach loop, test the CancellationPending property.
If the property is set to true, perform the following tasks:
Write a loopStatus.Stop() statement.
Set the DoWorkEventArgs.Cancel property to true.
Use a return statement to exit from the loop.

Answer: D

QUESTION 64
You are designing an application by using Windows Presentation Foundation (WPF), Microsoft .NET Framework 4, and Microsoft SQL Server 2008.
The application will contain several forms that include custom data validators.
You need to ensure that data is validated before the database updates occur.
You also need to ensure that the validation logic can be reused.
How should you design the validation?

A.    Implement the IDataErrorlnfo interface in the data class of the application.
B.    Implement the INotifyPropertyChanged interface in the data class of the application.
C.    Subscribe to the MouseLeave event for all user interface (UI) components of the application.
Perform data validation in the event handler and alert users when a data entry error occurs.
D.    Subscribe to the TextChanged event for all user interface (UI) components of the application.
Perform data validation in the event handler and alert users when a data entry error occurs.

Answer: A

QUESTION 65
Remote users have limited connectivity. Users will not have write permissions to the local file system.
You plan to design the error logging strategy for the application.
You need to ensure that the application can collect error information.
You also need to ensure that the errors can be analyzed from a centralized location.
What should you do?

A.    Use the local log file
B.    Use the Microsoft Sync Framework
C.    Log the errors to a Web service
D.    Log the errors to the Windows System event log

Answer: B

QUESTION 66
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 67
You are designing a .NET Framework 4 solution. The solution contains a Windows Presentation Foundation (WPF) application and a Windows Service, Both Applications using a common assembly and both store data in a Compact MSSQL Database.
You need to install the applications with the following requeriment.
Must be possible to update the WPF without stop the Windows Service.

A.    Deploy the Windows service in a separate folder from the WPF application
B.    Store the connection string in a enviroment variable.
C.    Store the connection string in a key in registry.
D.    Deploy the Windows Service in the same folder as the WPF application.

Answer: CD

QUESTION 68
You are designing a .NET Framework 4 solution. The solution contains a Windows Presentation Foundation (WPF) application that read from a MSSQL Database, The application run very slowly.
You note that the memory consume of the application is round 80 to 90% of the total system memory.
You need yo investigate the memory usage of the application.
With tool do you recomended to investigate the problem:

A.    Application Center Test ACT
B.    Trace and logging information.
C.    SQL Profiler
D.    CLR Profiler

Answer: D

QUESTION 69
You are designing a Windows Presentation Foundation (WPF) application by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010. The application accesses a Windows Communication Service (WCF) service on a middle-tier server to retrieve sales invoice information. The information consists of a master record and severs detail records that are displayed by the application. The source data frequently changes.
You need to ensure that the design meets the following requirements:
– Ensures that UI responsiveness is not impacted by WCF calls.
– Memorizes the amount of network traffic.
– Ensures that data is always up-to-date.
What should you do?

A.    Use multi-thread in the application.
B.    Use data caching the client placation.
C.    Use the Dispatcher. Invoke method when making WCF calls.
D.    Use the Dispatcher. Begin invoke method when making WCF calls.

Answer: A

QUESTION 70
Something […] to use from all application controls […]

A.    ControlTemplate
B.    DataTemplate
C.    HierarchicalDataTemplate
D.    ItemsPanelTemplate

Answer: A

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