70-518 Exam Details

  • Exam Code
    :70-518
  • Exam Name
    :PRO: Design & Develop Wndws Apps Using MS .NET Frmwrk 4
  • Certification
    :Microsoft Certifications
  • Vendor
    :Microsoft
  • Total Questions
    :239 Q&As
  • Last Updated
    :Dec 13, 2021

Microsoft 70-518 Online Questions & Answers

  • Question 171:

    You are designing a Windows application by using Microsoft .NET Framework 4, Microsoft Visual Studio 2010, and Microsoft SQL Server 2008. You need to design a data access strategy that meets the following requirements:

    Automatically tracks changes Maps the database data model to the object model

    Which data access technology should you use?

    A. LINQ to SQL
    B. LINQ to XML
    C. ADO.NET DataSet
    D. ADO.NET DataReader

  • Question 172:

    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.

  • Question 173:

    You are designing a Windows Forms application.

    You intend to display graphics on a form in the application by using a third-party Windows Presentation Foundation (WPF) control.

    You need to recommend a control for hosting the third-party WPF control.

    What should you recommend?

    A. An ElementHost control
    B. A Panel control
    C. A Canvas control
    D. A WindowsFormsHost control

  • Question 174:

    You are working with an existing Windows Presentation Foundation (WPF) application in Microsoft Visual Studio 2010. The WPF application requires approximately one minute to initialize before displaying its main window.

    You have the following requirements:

    Immediately display a splash screen when the WPF application launches.

    Allow for the display of an initialization progress bar on the splash screen.

    Close the splash screen when the WPF application is ready to display the main window.

    You need to recommend an approach for meeting the requirements.

    What should you recommend?

    A. Launch a custom splash screen by using a Window object. When the initialization completes, launch the main window from the splash screen.
    B. Create a SplashScreen object. Display the object in the code-behind of the App.xaml file.
    C. Move the initialization code to the code-behind of the main window.
    D. Compile an image into the WPF application with a Build Action value of SplashScreen.

  • Question 175:

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

    The application includes Windows Workflow Foundation (WF) hosts that run thousands of workflow instances. Workflows usually take 2 hours of time to complete. The application also includes a Windows Communication Foundation (WCF)

    service that contains a method to check the completion status of a workflow stored in a database.

    External applications that use the WCF service to check the status of workflows every minute causes performance degradation of the workflow that hosts the application.

    You need to eliminate the performance degradation caused by workflow status checks.

    What should you do?

    A. Cache the status of the workflow. Assign a callback function based on a SqlDependencyobject. Reload the cache in the callback function.
    B. Cache the status of the workflow. Set the expiry time of the Cache object to 30 minutes.
    C. Create a status checking workflow. Return the status of the original workflow to the external application in 30 minute intervals.
    D. Create a status checking workflow. Return the status of the original workflow to the external application after 10 requests have been made.

  • Question 176:

    You are deploying an application on Windows client computers by using Microsoft .NET Framework 4 and Microsoft Visual Studio 2010.

    You need to ensure that the deployment package meets the following requirements:

    Grants only the necessary permissions Adds a shortcut to the Windows Start menu Registers the application within Programs and Features Can be published to a Web site

    Which deployment strategy should you use?

    A. XCopy
    B. ClickOnce
    C. Merge module
    D. Windows Installer

  • Question 177:

    You are designing a Windows Presentation Foundation (WPF) application that displays thumbnail images of photographs. The thumbnails are arranged in rows and columns.

    The number of columns must automatically update based on the size of the application window.

    You need to recommend a container for displaying all the thumbnail images at the same size.

    Which container should you recommend?

    A. a WrapPanel control
    B. a StackPanel control
    C. a DockPanel control
    D. a Canvas control

  • Question 178:

    You are designing updates to a Windows solution that processes complex scientific data. The solution extracts analyzed data from Microsoft Excel by using an application-level add-in.

    You have the following requirements:

    Deploy the Excel add-in to client machines with the application.

    Ensure that the solution supports Excel 2007 and Excel 2010.

    Minimize the size of the deployment package.

    You need to recommend an approach that meets the requirements.

    What should you recommend?

    A. Include the primary interop assembly for Excel 2007.
    B. Embed the Excel 2010 COM library.
    C. Include the primary interop assembly for Excel 2010.
    D. Embed the type information from the Excel 2010 COM library.

  • Question 179:

    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.

  • Question 180:

    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.

    "It 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)

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Microsoft exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 70-518 exam preparations and Microsoft certification application, do not hesitate to visit our Vcedump.com to find your solutions here.