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 141:

    You have the following code in a Windows Presentation Foundation (WPF) application:

    You need to animate the ellipse.

    Which code segment should you use to declare the animation at line 13?

    A. DiscreteVectorKeyFrame a = new DiscreteVectorKeyFrame();
    B. PointAnimation a = new PointAnimation();
    C. AnimationTimeiine a;
    D. DoubleAnimation a = new DoubleAnimation();

  • Question 142:

    You use Microsoft .NET Framework 4 to create a Windows Forms application. You plan to use a Windows Presentation Foundation (WPF) control of the UserControl1 type hosted in an ElementHost control named elementHost1.

    You write the following code segment. (Line numbers are included for reference only.)

    You need to ensure that the application changes the background color of the hosted control when the background color of the form changes.

    Which code segment should you insert at line O5?

    A. elementHost1.PropertyMap.Remove ("BackColor"); elementHost1.PropertyMap.Add("BackColor", new PropertyTranslator(OnBackColorChange));
    B. elementHost1.PropertyMap . Remove ("Background"); elementHost1.PropercyMap.Add("Background", new PropertyTranslator(OnBackColorChange));
    C. elementHost1.PropertyMap.Add("BackColor", new PropertyTranslator(OnBackColorChange)); elementHost1.PropertyMap.Apply("BackColor");
    D. elementHost1.PropertyMap.Add("Background", new PropertyTranslator(OnBackColorChange)); elementHostl.PropertyMap.Apply("Background");

  • Question 143:

    You are developing a Windows Presentation Foundation (WPF) application. You configure PresentationTraceSource to track errors in a bound TextBox control in the application.

    You need to choose the window that the Trace information is sent to. Which Visual Studio window should you select?

    A. Autos
    B. Immediate
    C. Locals
    D. Output

  • Question 144:

    You are developing a Windows Presentation Foundation (WPF) application. You have a class named Orders, which contains OrderId and ShipOn properties. You place a control in the MainWindow.xaml file, as follows. (Line numbers are included for reference only.)

    When you run the application, the ComboBox control displays the class name for every row.

    You need to ensure that the ComboBox control displays the OrderId and ShipOn values in columns.

    Which markup segment should you add at line 03?

  • Question 145:

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

    You have the following style defined in the app.xaml file.

    You need to apply this style to a button named button1 in the application at run time.

    Which code segment should you use?

    A. button1.Style = this.FindName("styleltalic") as Style;
    B. button1.Style = this.FindName("btnltalic") as Style;
    C. button1.Style = this.FindResoucce("btnltalic") as Style;
    D. button1.Style = this.FindResource("styleltalic") as Style;

  • Question 146:

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

    You need to ensure that the application includes a container control that supports logical scrolling by default.

    Which control should you select?

    A. stackPanel
    B. Canvas
    C. Grid
    D. WrapPanel

  • Question 147:

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

    You add a ListBox control to the application. The ListBox control is data-bound to an instance of a custom collection class of the Product objects named ProductList.

    You need to ensure that changes to ProductList are automatically reflected in the ListBox control. What should you do?

    A. Implement the INotifyPropertyChanged interface in the Product class.
    B. Implement the IQueryable interface in the ProductList class.
    C. Extend the DependencyObject class in the Product class.
    D. Extend the ObservableCollection class in the ProductList class.

  • Question 148:

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

    The application uses drag-and-drop functionality.

    You need to ensure that code is executed in the code-behind file when the dragged item is released onto the target element.

    Which enumeration should you use?

    A. DragDropEffects.None
    B. DragAction.Cancel
    C. DragDropEffects.All
    D. DragAction.Drop

  • Question 149:

    You develop a Windows Presentation Foundation (WPF) application. The application runs on 64-bit machines only.

    The application architects want to store application settings in the registry. The users do not have write access to these settings. These application settings apply to everyone using the application. You need to read the application settings

    successfully from the registry.

    Which code segment should you use?

    A. RegistryKey ꞏOpenBaseKey{RegistryHive.LocalMachine, RegistryView.Registry64) ꞏOpenSubKey(@"Sofware\MyProgram") ꞏGetValue("ConnectionString") ;
    B. RegistryKey ꞏOpenBaseKey(RegistryHive.CurrentUser, RegistryView.Registry64) ꞏCreateSubKey(@"Software\MyProgram") ꞏGetValue("ConnectionString");
    C. RegiatryKey ꞏOpenBaseKey(RegistryHive.LocalMachine. RegistryView.Registry64) ꞏCreateSubKey(@"Software\MyProgram") ꞏGetValue("ConnectionString") ;
    D. RegistryKey ꞏOpenBaseKey(RegistryHive.CurrentUser, RegistryView.Registry64) ꞏOpenSubKey(@"Software\MyProgram") ꞏGetValue("ConnectionString");

  • Question 150:

    You use Microsoft .NET Framework 4 to create an application. The application contains a partially trusted client assembly and a server assembly.

    You create a custom sandboxed application domain.

    You need to ensure that the application can be executed in a partial-trust environment.

    What should you do?

    A. Apply the following attribute to the server assembly.
    B. Apply the following attribute to the server assembly.
    C. Apply the following attribute to the client assembly.
    D. Apply the following attribute to the client assembly.

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.