70-492 Upgrade your MCPD: Web Developer 4 to MCSD: Web Applications

QUESTION 1
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?

A. The DisplayFor method.
B. The ExhibitFor method.
C. The PresentFor method.
D. The ConcealFor method.

Answer: A

Explanation:


QUESTION 2
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?

A. You should consider adding code to assign users the Administrator role.
B. You should consider adding code to assign users the Advanced Operator role.
C. You should consider adding code to assign users the Author role.
D. You should consider adding code to assign users the Report Security Administrator role.

Answer: A

Explanation:


QUESTION 3
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?

A. You should consider including the :first-child pseudo-class.
B. You should consider including the :last-child pseudo-class.
C. You should consider including the :nth-child pseudo-class.
D. You should consider including the :nth-last-child(n) pseudo-class.

Answer: C

Explanation:


QUESTION 4
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?

A. The [ValueProviderCollection] attribute.
B. The [ValidateInput] attribute.
C. The [ValidateAntiForgeryToken] attribute.
D. The [ValidatableObjectAdapter] attribute.

Answer: C

Explanation:


QUESTION 5
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?

A. You should consider making changes to the machine.config file.
B. You should consider making changes to the app.config file.
C. You should consider making changes to the web.config file.
D. You should consider making changes to the client.config file.

Answer: C

Explanation:


MCTS Training, MCITP Trainnig

Best Microsoft MCTS Certification, Microsoft MCITP Training
70-492 Exam at certkingdom.com

70-492 Upgrade your MCPD: Web Developer 4 to MCSD: Web Applications
Scroll to top