PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

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?

You need to ensure that new and existing client applications can access the service through HTTP and named pip

You are modifying a Windows Communication Foundation (WCF) service that issues
security tokens. The service is accessible through the named pipe protocol. No endpoints
are added in the service code. The configuration file for the service is as follows. (Line
numbers are included for reference only.) You need to ensure that new and existing client
applications can access the service through HTTP and named pipes. 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?

You need to deploy your service to the Web site

You are hosting a Windows Communication Foundation (WCF) service under Microsoft
Internet Information Services (IIS) 7.0. You have set up a Web site in IIS Manager. The
physical path is C:\wwwroot\Calendar. There is a Calendar.svc file in the
C:\wwwroot\Calendar folder. It contains the following directive. <%@ ServiceHost
Language=”C#” Debug=”true” Service=”Calendar.Calendar”
CodeBehind=”Calendar.svc.cs” %> The Calendar.svc.cs file contains the source for the

Calendar class in the Calendar namespace. You compile this code into the Calendar.dll file.
You need to deploy your service to the Web site. What should you do?

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?