PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

What code should be used?

DRAG DROP

There is a ASP.NET MVC 2 Web Application named PassGuideApp.
There is a controller PassGuideCtrl.
The signatures of PassGuideCtrl is displayed in the exhibit.
Employee details is displayed when an employee name is entered as the path by invoking
the EmployeesByName action.

Note: Employee names must be between 7 and 16 characters in length, and contains
underscores and alphanumerical characters.
What code should be used?

How can remedy the problem?

DRAG DROP

There is a ASP.NET MVC 2 Web Application named PassGuideApp.
There is a controller with has the code displayed in the exhibit.
There are two Edit actions.
The first Edit action shows details on the employee that is edited.
The second Edit action is put into action when a user clicks a Save button in order to
update the Employee details.
However, a run time exception claims that the Edit Action is ambiguous.
How can remedy the problem?
Note: each action is a complete solution.

What to do?

DRAG DROP
There is a ASP.NET MVC 2 Web Application named PassGuideApp.
There is a single project area for PassGuideApp.
In the Areas folder there is a subfolder PassGuide.
There are files PassGuideC.vb and PassGuideD.aspx in proper subfolders.
The Route of the area is registered, the route is named PassGuideRoute, and the name of
the area is PassGuideArea.
Outside the area there is a view PassGuideView.aspx.
The PassGuideView.aspx must be linked to PassGuideD.aspx.
What to do?

You need to resolve two problems: A) the client proxy must return a List (of Employees) instead of an array

DRAG DROP
There is a Visual Studio 2010 solution.
The solution includes an ASP.NET project.
The solution also includes a WCF service project.
The WCF service includes PassGuideEmployees method.
PassGuideEmployees returns an array of Employee objects.
PassGuideEmployees takes no arguments.
A proxy class is used by the application to access the WCF.
The wizard ‘Add Service Reference’ is used to make the proxy class.
The service endpoint is manually adjusted to another port.
You need to resolve two problems:
A) the client proxy must return a List (of Employees) instead of an array.
B) the client must use the adjusted service address.

What code should be used for this?

DRAG DROP
Exhibit:

There is an ASP.NET page PGPage.
The code-behind file of PGPage is displayed in the exhibit.
There is an application PassGuideApp.
PassGuideApp has a classed named Employees.
Employees has a Hired property of type string.
A client-side script needs data.
The JavaScriptSerializer class is used to serialize the Hired property of each post of the
Employee list.
What code should be used for this?