70-511 Exam Details

  • Exam Code
    :70-511
  • Exam Name
    :TS: Windows Applications Development with Microsoft .NET Framework 4
  • Certification
    :Microsoft Certifications
  • Vendor
    :Microsoft
  • Total Questions
    :287 Q&As
  • Last Updated
    :Jan 26, 2022

Microsoft 70-511 Online Questions & Answers

  • Question 181:

    You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application contains a custom control that is used to display customer Information.

    You discover that the custom control is not rendering correctly.

    You need to identify the WPF element that is causing the issue.

    What should you do?

    A. Start the application in release mode. Place a breakpoint at the main entry point of the application. Use the debugger to step through the application code.
    B. Start the application in debug mode. Place a breakpoint at the main entry point of the application. Use the WPF Tree Visualizer tool.
    C. Enable IntelliTrace and configure Visual Studio to generate a trace log. Start the application in debug mode.
    D. Enable IntelliTrace and configure Visual Studio to generate a trace log. Start the application by double-clicking the executable file (.exe).

  • Question 182:

    You are developing a Windows Presentation Foundation (WPF) application that displays opportunities from List named Leads, where T is a class named Lead. The Lead class contains the properties Title and Revenue.

    You add a DataGrid control named dgQualifiedLeads to the MainWindow.xaml file. You set the ItemSource property of dgQualifiedLeads to Leads as follows. (Line numbers are included for reference only.)

    You need to ensure that CollectionViewSource is used to filter the list to display only Lead objects with revenue of more than $1,000. What should you do?

    A. Option A
    B. Option B
    C. Option C
    D. Option D

  • Question 183:

    You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application named MyApp.exe. You use Microsoft Windows Installer to package the application.

    You create an icon file named Application.ico.

    You need to associate Application.ico with MyApp.exe when MyApp.exe is deployed.

    What should you do?

    A. Use the File Types Editor tool.
    B. Rename the icon file to MyApp.exe.ico.
    C. Set the AddRemoveProgramsIcon property to Application.ico.
    D. Use the File System Editor tool to set the Icon property to Application.ico.

  • Question 184:

    You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You want to add an audio player that plays .wav or .mp3 files when the user clicks a button. You plan to store the name of the file to a variable named SoundFilePath.

    You need to ensure that when a user clicks the button, the file provided by SoundFilePath plays.

    What should you do?

    A. Write the following code segment in the button onclick event. System.Media.SoundPlayer player = new System.Media.SoundPlayer(SoundFilePath); player.Play() ;
    B. Write the following code segment in the button onclick event. MediaPlayer player = new MediaPlayer() ; player.Open(new URI(SoundFilePath), UriKind.Relative)); player.Play() ;
    C. Use the following code segment from the PlaySound() Win32 API function and call the PlaySound function in the button onclick event. [sysimport (dll="winmm.dll") ] public static extern long PlaySound(String SoundFilePath, long hModule, long dwFlags);
    D. Reference the Microsoft.DirectX Dynamic Link Libraries. Use the following code segment in the button onclick event. Audio song = new Song(SoundFilePath); song.CurrentPosition = song.Duration; song.Play ();

  • Question 185:

    You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.

    The application includes a function that is triggered by filling out a form and by clicking a button. Currently, the application is tested manually. You need to create an automated and iterative process to test the application.

    What should you do?

    A. Use IntelliTrace.
    B. Use UISpy.exe to extract the user interface (UI) Information. Then, use MSTest.exe.
    C. Use classes in the System.Windows.Automation and System.Windows.Automation.Text namespaces.
    D. Use the Action Recording methodology to record the user interface (UI) actions. Then, use MSTest.exe.

  • Question 186:

    You are developing a Windows Presentation Foundation (WPF) application. The application consists of:

    A window that contains controls organized into groups.

    Groups that are ordered vertically and that have individual headings.

    Controls within the groups that are ordered horizontally.

    Groups and controls that will be added dynamically at run time.

    You need to ensure that the application meets the following requirements:

    The window must be resizable without affecting the layout of the controls.

    The controls within the groups must be laid out such that there is a minimum amount of spacing between groups.

    What should you do?

    A. Use a WrapPanel control to organize the groups with its Orientation property set to Vertical. Use WrapPanel controls to organize the controls with their Orientation property set to Horizontal.
    B. Use a Grid control with its VerticalAlignment property set to Stretch to organize the groups and specify the row definitions. Use Grid controls to organize the controls and specify the column definitions.
    C. Use a ListBox control to organize the groups. Use Canvas controls to organize the controls.
    D. Use a StackPanel control to organize the groups with its Orientation property set to Vertical. Use StackPanel controls to organize the controls with their Orientation property set to Horizontal.

  • Question 187:

    You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application contains an ObservableCollection object named Pictures that contains several Picture objects. Each Picture object

    contains the Name and PictureFilePath properties.

    You add a ListBox control to the application.

    You need to ensure that the pictures are displayed in the ListBox control.

    Which code fragment should you use?

    A. Template>

  • Question 188:

    You develop a Windows Presentation Foundation (WPF) application. This application is used to output data trends to customer service representatives. You use threading to keep the UI responsive. You have a function named UpdateUI that updates all of the UI components.

    You use the following code to update the _Data variable. (Line numbers included for reference only.)

    You need to update the user interface without knowing if you are on the UI thread.

    Which code segment should you insert at line 06?

    A. this.Dispatcher.VerifyAccess(); var function = new Action(UpdateUI); this. Dispatcher.BecginInvoke{function, null);
    B. if (this.Dispatcher. CheckAccess (); { var function = new Action (Updated); this.Dispatcher.ReginInvoke(function, null); } else { UpdateUI(); }
    C. this.Dispatcher.VerifyAccess(); UpdateUI() ;
    D. if (this.Dispatcher.CheckAccess() ) UpdateUI (); } else { var function = new Action(UpdateUI); this. Dispatcher.ReginInvoice(function, null); }

  • Question 189:

    You use Microsoft .NET Framework 4 to create a Windows application. You use ClickOnce technology to install the application on computers that run Windows 7 with User Access Control (UAC) enabled.

    The application requires access to environment variables on each computer.

    You need to ensure that users who do not have administrative permissions can install the application.

    Which deployment method should you use?

    A. Start from Web.
    B. Install from Web.
    C. Start from network share.
    D. Install from network share.

  • Question 190:

    You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You write the following code segment. (Line numbers are included for reference only.)

    You add the following code fragment within a WPF window control.

    The TextBox control is data-bound to an instance of the Contact class.

    You need to ensure that the Contact class contains a business rule to ensure that the ContactName property is not empty or NULL. You also need to ensure that the TextBox control validates the input data.

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

    A. Option A
    B. Option B
    C. Option C
    D. Option D

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-511 exam preparations and Microsoft certification application, do not hesitate to visit our Vcedump.com to find your solutions here.