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

    You are implementing an ASP.NET application. The application includes a Person class with property Age. You add a page in which you get a list of Person objects and display the objects in a GridView control. You need to add code so that

    the GridView row is highlighted in red if the age of the person is less than 18.

    Which GridView event should you handle?

    A. RowDataBound
    B. RowCommand
    C. RowUpdated
    D. RowEditing

  • Question 182:

    jQuery CheckBoxes In a web page with chechboxes you need to write e jquery that retruns the number checked checkboxes

    A. $("input:checked").length;
    B. $("input", selected).length;
    C. $("input:selected").length;

  • Question 183:

    Which method of the ChildActionExtensions class calls a child action method and renders the result inline in the parent view?

    A. RenderPartial
    B. Action
    C. Render
    D. RenderAction

  • Question 184:

    You are implementing an ASP.NET Web page.

    You need to add a text box that allows only values between 1 and 10, inclusive, to be submitted. Which two code segments should you use? (Each correct answer presents part of the solution. Choose two.)

    A. function validate_value(obj, args) {return(args.Value >= 1 andand args.Value
    B. function validate_value(obj, args) {args.IsValid =(args.Value >= 1 andand args.Value

  • Question 185:

    You are creating an ASP.NET Web application. The application must call a WCF service by using a WCF routing service. You need to ensure that the application can invoke the target service by using the router endpoint. What should you do?

    A. Add a service reference to the router service. In the client binding configuration, specify the address of the router service.
    B. Add a service reference to the target service. In the client binding configuration, specify the address of the target service.
    C. Add a service reference to the router service. In the client binding configuration, specify the address of the target service.
    D. Add a service reference to the target service. In the client binding configuration, specify the address of the router service.

  • Question 186:

    You are developing an ASP.NET Web page that contains input controls, validation controls, and a button named btnSubmit.

    The page has the following code-behind. (Line numbers are included for reference only.)

    01 public partial class _Default : System.Web.UI.Page

    02 {

    03 protected void SaveToDatabase()

    04 {

    06 }

    08 protected void btnSubmit_Click(object sender,

    EventArgs e)

    09 {

    11 }

    12 }

    You need to ensure that all data that is submitted passes validation before the data is saved in a database.

    What should you do?

    A. Add the following method override. protected override void OnInit(EventArgs e){base.OnInit(e);if (Page.IsValid) this.SaveToDatabase(); }
    B. Add the following method override. protected override void OnLoad(EventArgs e) {base.OnLoad(e);if (Page.IsValid) this.SaveToDatabase();}
    C. Add the following method override. protected override void OnPreRender(EventArgs e) {base.OnPreRender(e);if (Page.IsValid) this.SaveToDatabase();}
    D. Add the following code segment at line 10.if (Page.IsValid) this.SaveToDatabase();

  • Question 187:

    You are implementing an ASP.NET page that includes the following down list.

    You need to dynamically add values to the end of the drop-down list. What should you do?

    A. Add the following OnPreRender event handler to the asp:DropDownListprotected void MyDropDown_PreRender(object sender, EventArgs e){DropDownList ddl = sender as DropDownList;Label lbl = new Label();lbl.Text = "Option";lbl.ID = "Option";ddl.Controls.Add(lbl);}
    B. Add the following OnPreRender event handler to the asp:DropDownListprotected void MyDropDown_PreRender(object sender, EventArgs e){DropDownList ddl = sender as DropDownList;ddl.Items.Add("Option");}
    C. Add the following event handler to the page code-behind.protected void Page_LoadComplete(object sender, EventArgs e){DropDownList ddl = Page.FindControl("MyDropDown") as DropDownList;Label lbl = new Label();lbl.Text = "Option";lbl.ID = "Option";ddl.Controls.Add(lbl);}
    D. Add the following event handler to the page code-behind.protected void Page_LoadComplete(object sender, EventArgs e){DropDownList ddl = Page.FindControl("MyDropDown") as DropDownList;ddl.Items.Add("Option");}

  • Question 188:

    You are developing an ASP.NET web page that includes a Panel Control that has ID ContentSection. You need to add a text box control to the Panel control. Which code segment should you use?

    A. this.ContentSection.Controls.Add(this.FindControl(contentSection.ID + "asp:TextBox"));
    B. this.LoadTemplate("asp:TextBox").InstantiateIN(ContentSection);
    C. this.RequiresControlState(this.LoadControl(typeof(TextBox),null));
    D. this.ContentSection.Controls.Add(this.LoadControl(typeof(TextBox),null));

  • Question 189:

    You are implementing a Web page that displays text that was typed by a user. You need to display the user input in the Web page so that a cross-site scripting attack will be prevented. What should you do?

    A. Call document.write.
    B. Call Response.Write.
    C. Call HttpUtility.UrlEncode.
    D. Call HttpUtility.HtmlEncode.

  • Question 190:

    Which directive defines master page-precise attributes that are used by the ASP.NET page parser and compiler?

    A. @ MasterType
    B. @ Master
    C. @ PageType
    D. @ MasterPage

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.