[Free] Get all latest Microsoft 70-492 Actual Tests 81-90

Ensurepass

QUESTION 81

HOTSPOT

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.)

 

clip_image001

 

clip_image002

Correct Answer:

clip_image004

 

 

QUESTION 82

DRAG DROP

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.)

 

clip_image006

 

Correct Answer:

clip_image008

 

 

QUESTION 83

DRAG DROP

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.)

 

clip_image010

 

Correct Answer:

clip_image012

 

 

QUESTION 84

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.ToString() @Html.TextArea (“miles”)

D.

@Htmi.DisplayFor(model => log.Distance.ToString() + ” miles”)

 

Correct Answer: AB

 

 

Case Study 3, Online Shopping

 

Background

You are developing an online shopping web application.

 

Business Requirements

clip_image014A user is not required to provide an email address. If a user enters an email address, it must be verified to be a valid email address.

clip_image014[1]Information about the first product on the product page must fade out over time to encourage the user to continue browsing the catalog.

clip_image014[2]Administrators must be able to edit information about existing customers.

clip_image014[3]Administrators also must be able to specify a default product on the product page.

 

Technical Requirements

 

General:

clip_image014[4]The web store application is in a load-balanced web farm. The load balancer is not configured to use server affinity.

clip_image014[5]The web store application is an ASP.NET MVC application written in Visual Studio 2012.

 

Products:

clip_image014[6]The value of the productId property must always be greater than 0.

clip_image014[7]The Products page for mobile devices must display to mobile users. The Products page for desktop devices must display to desktop users.

 

Storage:

clip_image014[8]The data must be stored in a serialized XML data format.

clip_image014[9]Serialized objects must be schema-independent.

 

Exception handling:

clip_image014[10]Exceptions originating from IIS must display a page with support contact information.

clip_image014[11]Some page links expire, and users who access these links encounter 404 errors.

clip_image014[12]Exceptions must be logged by using the WriteLog method of the Utility class.

 

Browser and device support:

The application must support image format conversions from .bmp to .jpeg for mobile devices.

The application must support image format conversions from .bmp to .png for desktop devices.

 

Application Structure

clip_image015

 

clip_image016

clip_image018

clip_image019

 

clip_image021

 

 

QUESTION 85

You need to implement client-side animations according to the business requirements. Which line of code should you use? (Each correct answer presents a complete solution. Choose all that apply.)

 

A.

$(“body h1:nth-child(1)”).fadeIn(1000);

B.

$(“body h1:nth-child(1)”)-fadeOut(1000);

C.

$(“body h2:nth-child(1)”).animate({ opacity: 0 });

D.

$(“body h1:nth-child(1)”).animate({ opacity: 1 });

 

Correct Answer: BC

 

 

QUESTION 86

You are designing a Windows Communication Foundation (WCF) service that uses the Product class. You need to update the class to meet the storage requirement. What should you do? (Each correct answer presents part of the solution. Choose all that apply.)

 

A.

Mark the Product class with the DataContract attribute.

B.

Mark the public members of the Product class with the DataContractFormat attribute.

C.

Mark the Product class with the CollectionDataContract attribute.

D.

Mark the public members of the Product class with the DataMember attribute.

 

Correct Answer: AD

 

 

QUESTION 87

You need to add a method to the ProductController class to meet the exception handling requirements for logging. Which code segment should you use?

 

clip_image022

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: C

 

 

QUESTION 88

You need to modify the application to meet the productId requirement. What should you do?

 

clip_image023

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: B

Explanation:

The Contract.Requires(Of TException) method specifies a precondition contract for the enclosing method or property, and throws an exception if the condition for the contract fails.

Syntax:

‘Declaration

Public Shared Sub Requires(Of TException As Exception) ( _ condition As Boolean _

)

Type Parameters

TException

The exception to throw if the condition is false.

Parameters

condition

Type: System.Boolean

The conditional expression to test.

 

Reference: Contract.Requires(Of TException) Method (Boolean)

 

 

QUESTION 89

The GetDealPrice method must be called by using Ajax. You need to get the price of a product by using the GetDealPrice method of the ProductController. Which code segment should you use? (Each correct answer presents a complete solution. Choose all that apply.)

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: CD

 

 

QUESTION 90

You need to implement the requirements for handling IIS errors. What should you do?

 

clip_image024

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: B

 

Instant Access to Download Testing Software & PDF File for Microsoft 70-492 Real Exam

Instant Access to Try Microsoft 70-492 Free Demo

This entry was posted in 70-492 Actual Tests and tagged , , , , , . Bookmark the permalink.