70-515 Exam Details

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

Microsoft 70-515 Online Questions & Answers

  • Question 141:

    You create a custom server control named Task that contains the following code segment. (Line numbers are included for reference only.)

    01Namespace DevControls 03 Public Class Task 04 Inherits WebControl 06 07 Public Property Title As String 09 Protected Overrides Sub RenderContents( 10 ByVal output As HtmlTextWriter) 12 output.Write(Title) 13 End Sub 15 End Class 17 End Namespace

    You need to ensure that adding a Task control from the Toolbox creates markup in the following format.

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

    A. Add the following code segment to the project's AssemblyInfo.vb file.
    B. Replace line 06 with the following code segment.
    C. Insert the following code segment immediately before line 03.
    D. Replace line 12 with the following code segment.output.Write("")

  • Question 142:

    You are developing an ASP.NET MVC2 view and controller. The application includes a class names Employee that has a LastName property. The controller requires an action method that will insert an Employee instance into a database.

    You need to ensure that the data that is submitted is an Employee instance and that a LastName value is given. What should you do?

    A. Add a ValidationMessage helper method immediately after the view's last name TextBox. Define the action method as follows.public ActionResult Create(FormCollection employeeToCreate){...}
    B. Add the Required attribute to the LastName property. Define the action method as follows.public ActionResult Create(FormCollection employeeToCreate){...}
    C. Add the Required attribute to the LastName property. Define the action method as follows.public ActionResult Create(Employee employeeToCreate){...}
    D. Add the ValidationMessage helper method immediately after the views last name TextBox. Define the action method as follows.public ActionResult Create(Employee employeeToCreate){...}

  • Question 143:

    You are developing an ASP.NET web application.

    The application consumes a WCF service that implements a contract named IcontosoService. The service is located on the local network and is exposed using the following endpoint

    kind="udpDiscoveryEndpoint"/>

    You need to consume the service by using the WS-Discovery protocol.

    Which client endpoint configuration should you use?

  • Question 144:

    You have a login.ascx control and to display it in a view which method u would use..

    A. http.display
    B. http.partial
    C. http.load
    D. http.get

  • Question 145:

    You are implementing an ASP.NET AJAX page that contains two div elements. You need to ensure that the content of each div element can be refreshed individually, without requiring a page refresh. What should you do?

    A. Add two forms to the page.Add a script manager and an update panel to each form.Add a content template to each update panel, and move each div element into a content template.
    B. Add two forms to the page.Add a script manager and an update panel to each form.Add a content template to each update panel, and move each div element into a content template.
    C. Add a form and two update panels to the page.Add a script manager to the form.Add a content template to each update panel, and move a div element into each content template.
    D. Add a form and two update panels to the page.Add two script managers to the form, one for each update panel.Add a content template to each update panel, and move each div element into a content template.

  • Question 146:

    You are implementing an ASP.NET Web site that uses a custom server control named Task. Task is defined as shown in the following list.

    Class name: Task

    Namespace: DevControls

    Assembly: TestServerControl.dll

    Base class: System.Web.UI.WebControls.WebControl

    You copy TestServerControl.dll to the Web sites Bin folder. You need to allow the Task control to be declaratively used on site pages that do not contain an explicit @ Register directive.

    Which configuration should you add to the web.config file?

  • Question 147:

    Which of the following is the correct collection of build events?

    A. Pre-Build, Post-Link, and Pre-Link
    B. Pre-Build, Post-Build, and Post-Link
    C. Pre-Build, Pre-Link, and Post-Build
    D. Post-Link, Pre-Link, and Post-Build

  • Question 148:

    You are implementing an ASP.NET application that uses data-bound GridView controls in multiple pages. You add JavaScript code to periodically update specific types of data items in these GridView controls. You need to ensure that the

    JavaScript code can locate the HTML elements created for each row in these GridView controls, without needing to be changed if the controls are moved from one page to another.

    What should you do?

    A. Replace the GridView control with a ListView control.
    B. Set the ClientIDMode attribute to Predictable in the web.config file.
    C. Set the ClientIDRowSuffix attribute of each unique GridView control to a different value.
    D. Set the @ OutputCache directive's VaryByControl attribute to the ID of the GridView control.

  • Question 149:

    You create an ASP.NET server control in the SampleControl namespace. The control uses a JavaScript file names Refresh.js to implement AJAX functionality. You need to ensre that the JavaScript file is included in the assembly. Which two actions should you perform (Choose 2)

    A. Add the following assembly attribute to the AssemblyInfo file. [assembly:WebResource("SampleControl.Refresh.js","application/x-javascript")]
    B. Add the following assembly attribute to the AssemblyInfo file. [assembly:ScriptResource("SampleControl.Refresh.js")]
    C. In the Properties window for the Refresh.js file, set the Build Action to Embedded Resource.
    D. In the Properties window for the Refresh.js file, set the Build Action to Content.

  • Question 150:

    You are developing an ASP.NET Web application.

    The application must pass an object that contains user-specific data between multiple pages. The object ismore than 100 KB in size when serialized.You need to minimize the amount of data is sent to the user.What should you do?

    A. Pass the object data in a hidden field.
    B. Store the object instance in a session variable.
    C. Use a cookie that contains the object data.
    D. Encode the object data and pass it in a query string parameter.

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