PrepAway - Latest Free Exam Questions & Answers

Category: 70-515 (v.3)

Exam 70-515: TS: Web Applications Development with Microsoft .NET Framework 4 (update October 26th, 2015)

Which configuration should you use?

You are creating an ASP.NET Web site. The site contains pages that are available to anonymous
users. The site also contains a page named Premium.aspx that provides premium content to only
members of a group named Subscribers. You need to modify the web.config file to ensure that
Premium.aspx can be accessed by only members of the Subscribers group. Which configuration
should you use?

Which code segment should you use?

You are implementing an ASP.NET Web site. The site uses a component that must be dynamically
configured before it can be used within site pages. You create a static method named
SiteHelper.Configure that configures the component. You need to add a code segment to the
Global.asax file that invokes the SiteHelper.Configure method the first time, and only the first time,
that any page in the site is requested. Which code segment should you use?

Which two actions should you perform?

You create a Visual Studio 2010 solution that includes a WCF service project and an ASP.NET project.
The service includes a method named GetPeople that takes no arguments and returns an array of
Person objects. The ASP.NET application uses a proxy class to access the service. You use the Add
Service Reference wizard to generate the class. After you create the proxy, you move the service
endpoint to a different port. You need to configure the client to use the new service address. In
addition, you must change the implementation so that calls to the client proxy will return a List(Of
Person) instead of an array. Which two actions should you perform? (Each correct answer presents
part of the solution. Choose two.)

Which configuration should you use in web.config?

You use the ASP.NET Web Site template to create a Web site that will be deployed to multiple
locations. Each location will specify its SMTP configuration settings in a separate file named
smtp.config in the root folder of the Web site. You need to ensure that the configuration settings
that are specified in the smtp.config file will be applied to the Web site. Which configuration should
you use in web.config?

You need to ensure that the connection string value that is stored in the web.config file is updated to the pr

You are preparing to deploy an ASP.NET application to a production server by publishing the
application in Release configuration. You need to ensure that the connection string value that is
stored in the web.config file is updated to the production server’s connection string value during
publishing. What should you do?

Which GridView event should you handle?

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?

Which code segment should you use?

You are implementing an ASP.NET application that uses LINQ to Entities to access and update the
database. The application includes the following method to update a detached entity of type Person.
private NorthwindContext _entities;
public void UpdatePerson(Person personToEdit)
{

}
You need to implement the UpdatePerson method to update the database row that corresponds to
the personToEdit object.
Which code segment should you use?

Which two actions should you perform?

You are implementing an ASP.NET Web site. The Web site contains a Web service named
CustomerService. The code-behind file for the CustomerService class contains the following code
segment.
public class ProductService : System.Web.Services.WebService
{
public List<Product> GetProducts(int categoryID)
{
return GetProductsFromDatabase(categoryID);
}}
You need to ensure that the GetProducts method can be called by using AJAX. Which two actions
should you perform? (Each correct answer presents part of the solution. Choose two.)


Page 7 of 26« First...56789...20...Last »