QUESTION 11
Drag and Drop Question
You need to implement the Views\RunLog\_CalculatePace.cshtml partial view from Views\Runlog \GetLog.cshtml to display the runner’s average mile pace. How should you implement the view? (To answer, drag the appropriate code segments to the correct location or locations. Each code segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.)
QUESTION 12
Drag and Drop Question
You need to implement security according to the business requirements. How should you modify RunLogController? (To answer, drag the appropriate code segment to the correct location or locations. Each code segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.)
QUESTION 13
You need to make the “Distance” header of the table bold in the Views/RunLog/GetLog.cshtml view. Which code segment should you use?
A. table>tr{ font-weight: bold; }
B. table>th:last-child{ font-weight: bold; }
C. table+first-child{ font-weight: bold; }
D. table>tr>th:nth-child (2) { font-weight: bold; }
Answer: D
QUESTION 14
You need to extend the edit functionality of RunLogController. Which code segment should you use?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: C
QUESTION 15
You need to implement the map of the runners’ paths. How should you build the video viewer? (To answer, select the appropriate options in the answer area.)
QUESTION 16
Hotspot Question
You need to ensure that only valid parameters are passed to the EditLog action. How should you build the route? (To answer, select the appropriate options in the answer area.)
QUESTION 17
Drag and Drop Question
You need to ensure that the application uses RunLogRoleProvider custom role provider. How should you modify the web.config file? (To answer, drag the appropriate line of code to the correct location or locations. Each line of code may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.)
QUESTION 18
You are creating a new authentication system that uses an HTTP header value. The existing authentication system must continue to operate normally. You need to implement the custom authentication. What should you do? (Each correct answer presents a complete solution. Choose all that apply.)
A. Create a class derived from ActionResult and check for a valid HTTP header value in the ExecuteResult method. Change all actions to return this new class.
B. Create an HttpHandler to check for a valid HTTP header value in the ProcessRequest method.
C. Create an HttpModule and check for a valid HTTP header value in the AuthenticateRequest event.
D. Create a class derived from AuthorizeAttribute and check for a valid HTTP header value in the AuthorizeCore method. Change usages of the existing AuthorizeAttribute to use the new class.
Answer: CD
QUESTION 19
When users attempt to retrieve a product from the product page, a run-time exception occurs if the product does not exist. You need to route the exception to the CustomException.aspx page. Which method should you add to MvcApplication?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: B
QUESTION 20
You updated the web.config file with the HTTP run-time value required to display an alternative version of the site. You need to ensure that the correct page displays to the users. Which code segment should you use to update the controller?
A. If (Request.IsTabletDevice)
B. If (Request.Browser.IsBrowser(“Mobile”))
C. If (Request.UserAgent[“Tablet”])
D. If (Request.Browser.IsMobileDevice)
Answer: D
New Version Free Pass4sure Microsoft 70-486 Exam Dumps Download