QUESTION 1
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; } Correct Answer: D
Explanation Explanation/Reference:
QUESTION 2
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
Correct Answer: C Explanation
Explanation/Reference:
QUESTION 3
If the canvas element is supported by the client browser, the application must display “London 2012” in the footer as text formatted by JavaScript at the end of the _Layout.cshtml file.
You need to modify the layout to ensure that “London 2012″ is displayed as either formatted text or as plain text, depending on what the client browser supports.
Which code segment should you add?
A. <canvas id=”myFooter”> @(Request,Browser.JavaApplets ? new HtmlString(“London 2012″) : null) </canvas>
B. <canvas id=”myFooter”London 2012</canvas>
C. <canvas id=”myCanvas”>London 2012</canvas>
D. <canvas id=”myCanvas”><canvas> <p>London 2012</p>
Correct Answer: C Explanation
Explanation/Reference:
QUESTION 4
You need to add an action to RunLogController to validate the users’ passwords. Which code segment should you use?
A. Option A
B. Option B
C. Option C
D. Option D Correct Answer: B
Explanation Explanation/Reference:
QUESTION 5
You need to make all of the rows in the table bold in the Views/RunLog/GetLog.cshtml view. Which code segment should you use?
A. Table > th:last-child { font-weight: bold; }
B. Table+first-child{ font-weight: bold; }
C. Table>tr>th:nth-child{2){font-weight: bold; }
D. Table > tr {font-weight: bold;}
Correct Answer: D Explanation
Explanation/Reference:
QUESTION 6
You need to display the “miles” unit description after the distance in the GetLog view.
Which line of code should you use to replace line GL21? (Each correct answer presents a complete solution. Choose all that apply.)
A. @log.Distance miles
B. @Htrml.DisplayFor(model => log.Distance) miles
C. @log.Distance.ToStringO @Html.TextArea (“miles”)
D. @Htmi.DisplayFor(model => log.Distance.ToString() + ” miles”)
Correct Answer: AB Explanation
Explanation/Reference:
QUESTION 7
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.)
Select and Place:
Correct Answer:
Explanation Explanation/Reference: QUESTION 8
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.)
Select and Place:
Correct Answer: Explanation
Explanation/Reference:
QUESTION 9
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.)
Hot Area: Correct Answer: Explanation
Explanation/Reference: QUESTION 10
You need to ensure that only valid parameters are passed to the EditLog action.
Hot Area:
Correct Answer:
Explanation
Explanation/Reference:
QUESTION 11
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.)
Select and Place:
Correct Answer:
Explanation Explanation/Reference:
QUESTION 12
You need to ensure that only valid parameters are passed to the EditLog action.
How should you build the route? (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.)
Select and Place:
Correct Answer: