Online Access Free 070-515 Practice Test

Exam Code:070-515
Exam Name:TS: Web Applications Development with Microsoft .NET Framework 4
Certification Provider:Microsoft
Free Question Number:186
Posted:Oct 20, 2025
Rating
100%

Question 1

You are developing a WCF service.
The service includes an operation names GetProduct.
You need to ensure that GetProduct will accept a POST request and will indicate that the returned data is XML.
Which two actions should you perform (Choose 2)

Question 2

You work as an ASP.NET Web Application Developer for SomeCompany.
The company uses Visual Studio .NET 2010 as its application development platform.
You create an ASP.NET Web application using .NET Framework 4.0.
The Web application connects to a SQL Server database.
You use the ADO.NET Entity Framework to handle persistence-ignorant entities.
You create an ObjectContext object named ObjContext.
Subsequently, you change properties on numerous entities.
You are required to save the changed entity values in the SQL Server database.
Which of the following code segments will you use?

Question 3

You are developing an ASP.NET Web page. The page contains the following markup.
<asp:GridView ID="gvModels" runat="server" onrowdatabound="gvModels_RowDataBound" AutoGenerateColumns="false">
<Columns>
<asp:BoundField DataField="Name" HeaderText="Model" />
<asp:TemplateField>
<ItemTemplate> <asp:Image ID="img" runat="server" /> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView>
The pages code-behind file includes the following code segment. (Line numbers are included for reference only.)
01 protected void gvModels_RowDataBound(object sender, GridViewRowEventArgs e)
02 {
03 if (e.Row.RowType == DataControlRowType.DataRow)
04 {
05 CarModel cm = (CarModel)e.Row.DataItem;
06
07 img.ImageUrl = String.Format("images/{0}.jpg", cm.ID);
08 09 } 10 }
You need to get a reference to the Image named img. Which code segment should you add at line 06?

Question 4

You are developing an ASP.NET Web page.
You add a data-bound GridView control.
The GridView contains a TemplateField that includes a DropDownList.
You set the GridViews ClientIDMode property to Static, and you set the ClientIDRowSuffix property to
ProductID.
You need to be able to reference individual DropDownList controls from client-side script by using the
ProductID.
What should you set the ClientIDMode property of the DropDownList to?

Question 5

You are developing an ASP.NET web application. Your designer creates a theme named General for
general use in the application.
The designer also makes page-specific changes to the default properties of certain controls.
You need to apply the General theme to all pages, and you must ensure that the page-specific
customizations are preserved.
What should you do?

Add Comments

Your email address will not be published. Required fields are marked *

insert code
Type the characters from the picture.