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

    You are building an ASP.NET control. The control displays data by using a table element with a class attribute value of Results.

    The control should expose a client-side event named onrowselected that fires when a check box in a table row is selected.

    You need to implement this client-side event.

    What should you do?

    A. $('.Results input:checked').onrowselected = function (e, sender) { ...};
    B. $('.Results input:checked').bind('onrowselected', function (e, sender) {...});
    C. $('.Results').bind('onrowselected', function (e, sender) { ...}).click(function (e) {if ($ (e.target).is ('input:checked')) {$('.Results').trigger('onrowselected', [$(e.target)]);}});
    D. $('.Results').onrowselected($.proxy($(this).find('input:checked'), function (e, sender) {...}));

  • Question 122:

    You are implementing a WCF service library. You add a new code file that contains the following code segment.

    Namespace ContosoWCF Public Interface IRateService Function GetCurrentRate() As Decimal End Interface Partial Public Class RateService Implements IRateService Public Function GetCurrentRate() As Decimal _ Implements IRateService.GetCurrentRate Dim currentRate As Decimal = GetRateFromDatabase() Return currentRate End Function End Class End Namespace

    You build the service library and deploy its assembly to an IIS application. You need to ensure that the GetCurrentRate method can be called from JavaScript. What should you do?

    A. Add a file named Service.svc to the IIS application. Add the following code segment to the file.< %@ ServiceHost Service="ContosoWCF.IRateService"Factory="System.ServiceModel.Activation.WebScriptServiceHo stFactory"%>
    B. Add a file named Service.svc to the IIS application. Add the following code segment to the file.< %@ ServiceHost Service="ContosoWCF.RateService"Factory="System.ServiceModel.Activation.WebScriptServiceHos tFactory"%>
    C. Apply the ScriptService attribute to the RateService class. Rebuild the WCF service library, and redeploy the assembly to the IIS application.
    D. Apply the WebGet attribute to the GetCurrentRate interface method. Rebuild the WCF service library, and redeploy the assembly to the IIS application.

  • Question 123:

    A Web page includes the HTML shown in the following code segmen Check out

    the FAQ on

    Contoso's web site for more information:

    FAQ.

    Home

    You need to write a JavaScript function that will dynamically format in boldface all of the hyperlinks in the ref span.

    Which code segment should you use?

    A. $("#ref").filter("a[href]").bold();
    B. $("ref").filter("a").css("bold");
    C. $("a").css({fontWeight:"bold"});
    D. $("#ref a[href]").css({fontWeight:"bold"});

  • Question 124:

    You are developing an ASP.NET AJAX extender control. The extender includes the following segment.

    public class DisabledButtonExtender : ExtenderControlBase { [ExtenderControlProperty] public string TargetID { get{...} set{...} } }

    You need to ensure that the extender can be user to extend only text boxes and that the targetID property can reference only buttons. What should you do?

    A. Apply the following attribute to the class.[ValidationProperty("TextBox")]Apply the fallowing attribute to TargetID[Filterable(true)]
    B. Apply the following attribute to the class.[TargetControlType(typeof(TextBox))]Apply the following attribute to TargetID[Filterable(true)]
    C. Apply the following attribute to the class.[ValidationProperty("TextBox")]Apply the following attribute to TargetID[IDReferenceProperty(typeof(Button))]
    D. Apply the following attribute to the class.[TargetControlType(typeof(TextBox))]Apply the following attribute to TargetID[IDReferenceProperty(typeof(Button))]

  • Question 125:

    You use the following declaration to add a Web user control named TestUserControl.ascx to an ASP.NET page named TestPage.aspx.

    You add the following code to the code-behind file of TestPage.aspx.

    private void TestMethod()

    {

    ...

    }

    You define the following delegate.

    public delegate void MyEventHandler();

    You need to add an event of type MyEventHandler named MyEvent to TestUserControl.ascx and attach the page's TestMethod method to the event.

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

    A. Add the following line of code to TestUserControl.ascx.cs.public event MyEventHandler MyEvent;
    B. Add the following line of code to TestUserControl.ascx.cs.public MyEventHandler MyEvent;
    C. Replace the TestUserControl.ascx reference in TestPage.aspx with the following declaration.
    D. Replace the TestUserControl.ascx reference in TestPage.aspx with the following declaration.

  • Question 126:

    You are implementing an ASP.NET Web site. The site allows users to explicitly choose the display language for the site# s Web pages. You create a Web page that contains a DropDownList named ddlLanguage, as shown in the following

    code segment.

    English

    Spanish

    French

    German

    The site contains localized resources for all page content that must be translated into the language that is selected by the user.

    You need to add code to ensure that the page displays content in the selected language if the user selects a language in the drop-down list.

    Which code segment should you use?

    A. Protected Sub SelectedLanguageChanged(ByVal sender As Object, ByVal e As EventArgs) Handles ddlLanguage.SelectedIndexChanged Page.UICulture = ddlLanguage.SelectedValue End Sub
    B. Protected Overrides Sub InitializeCulture() Page.UICulture = Request.Form("ddlLanguage") End Sub
    C. Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Page.Culture = Request.Form("ddlLanguage") End Sub
    D. Protected Overrides Sub InitializeCulture() Page.Culture = ddlLanguage.SelectedValue End Sub

  • Question 127:

    You have an ASP.NET web application that uses master pages and content pages. You must initialize and close multiple resources from different events. In what order do events in the master pages and content pages occur?

    Select and Place:

  • Question 128:

    You are developing an ASP.NET application by using Visual Studio 2010. You need to interactively debug the entire application. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

    A. Set the Debug attribute of the compilation node of the web.config file to true.
    B. Add a DebuggerDisplay attribute to the code-behind file of the page that you want to debug.
    C. Select the ASP.NET debugger option in the project properties.
    D. Define the DEBUG constant in the project settings.

  • Question 129:

    Which class provides paging functionality for data-bound controls that implement the IPageableItemContainer interface?

    A. DataPagingField
    B. DataPagerCollection
    C. DataPager
    D. DataPaging

  • Question 130:

    Which of the following is the correct syntax to specify the path to a file that generates the strong type?

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.