5/80 questions · Unlock full access
Q1

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?

Q2

You have been instructed to meet the business requirements with regards to security. You are required to make changes to the CyclingLogController. Which of the following actions should you take?

Q3

You have been instructed to insert a line of code into your existing code that allows for the "Distance" header of the table to be displayed in bold in the Views/CyclingLog/GetLog.cshtml view. Which of the following should be included in the line of code?

Q4

You have been asked to make sure that the edit action of RunLogController is extended. You start by writing the following lines of code: [HttpPost] [ActionName (“Editlog”)] You are required to make use of a specific attribute next. Which of the following is the attribute in question?

Q5

You have been tasked with making sure that the application is configured to make use of a custom role provider, named CyclingLogRoleProvider. Which of the following actions should you take?