PrepAway - Latest Free Exam Questions & Answers

Which of the following is a method that should be included in your code?

Topic 1, Scenario 1
Background
You are making use of Visual Studio 2012 to create an ASP.NET MVC application to log training
information for a cycling club.
Business Requirements
The application needs to host data regarding training dates, distances, and duration. Application
users must be able to view and modify data. The application itself should be highly accessible.
The application should also allow for times to be presented in the user’s native time.
Technical Requirements
A public class, named CyclistLog.DataAccess.CyclistLogDb, deals with database access. HTTP
GET should be used for all data retrieval. HTTP POST should be used for all data updates.
A master layout file, named \Views\Shared\_Layout.cshtml, is used by all pages in the application.
The application makes use of the \Models\LogModel.cs model.
The Razor view engine is used for all views in the application. The \Views\CyclingLog includes the
_CalculateSpeed.cshtml, EditLog.cshtml, GetLog.cshtml, and InsertLog.cshtml views. The
application, however, includes a \Views\Home\Index.cshtml view.
The controller included in the application is \Controllers\CyclingLogController.cs. You have also
included a timer.png image in the \Images folder.
When a user examines a cycling log, the user’s trail map is accessible. This map is configured as
a video and an Adobe Flash application. The browser should using H264, Ogg, or WebM formats
(in this order) to present the video natively. The Flash application should be used In the event that
the video cannot be presented.
Security:
The application should make use of forms authentication, and requires user logon for entering
information. The editing or deleting of cyclist information requires a user to be a member of the
Admin role.
Users must be members of the Admin role to.
You need to the application should be defended against cross-site request forgery. The SHA1
algorithm should be used to hash passwords.
A custom role provider must be included in CyclistLog.Providers.CyclingLogRoleProvider.es.
*************************************

You have received instructions to make sure that the Views\CyclingLog\_CalculateSpeed.cshtml
partial view, from the Views\Cyclelog \GetLog.cshtml, is configured to show the cyclist’s average
speed per kilometer.
You need to write the necessary code to apply the view.
Which of the following is a method that should be included in your code?

PrepAway - Latest Free Exam Questions & Answers

A.
The DisplayFor method.

B.
The ExhibitFor method.

C.
The PresentFor method.

D.
The ConcealFor method.

One Comment on “Which of the following is a method that should be included in your code?


Leave a Reply