Achieve New Updated (September) Microsoft 70-486 Examination Questions 71-80

Ensurepass

 

QUESTION 71

You are developing an ASP.NET MVC web application that includes the following method.

 

clip_image002

 

You need to test the GoldMined method.

 

Which unit test should you use?

 

clip_image004

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: D

 

 

QUESTION 72

You are developing an ASP.NET MVC application by using Visual Studio 2012. The application throws and handles exceptions when it runs. You need to examine the state of the application when exceptions are thrown. What should you do?

 

A.

From the Debug menu in Visual Studio 2012, select Exceptions. Enable the Thrown check box for Common Language Runtime Exceptions.

B.

From the DEBUG menu in Visual Studio 2012, select Attach to Process. Select the IIS process.

C.

From the Debug menu in Visual Studio 2012, select Exceptions. Disable the User- unhandled check box for Common Language Runtime Exceptions.

D.

From the TOOLS menu in Visual Studio 2012, click Customize. C!ic< tie Commands tab and select Debug.

 

Correct Answer: A

 

 

QUESTION 73

HOTSPOT

You are developing an ASP.NET MVC application that has pages for users who browse the site with Windows Phone 7.

 

The pages for Windows Phone 7 include the following files:

 

clip_image006_Layout.WP7.cshtml

clip_image006[1]Index.WP7.cshtml

 

You need to update the application so that it renders the customized files correctly to Windows Phone 7 users.

 

How should you update the Applic

ation_Start method?

 

To answer, select the appropriate option from the drop-down list in the answer area.

 

clip_image007

 

Correct Answer:

clip_image008

 

 

 

 

 

QUESTION 74

You are developing an ASP.NET MVC web application for viewing a photo album. The application is designed for devices that support changes in orientation, such as tablets and smartphones. The application displays a grid of photos in portrait mode.

 

When the orientation changes to landscape, each tile in the grid expands to include a description. The HTML that creates the gallery interface resembles the following markup.

 

clip_image009

 

If this CSS is omitted, the existing CSS displays the tiles in landscape mode.

 

You need to update the portrait mode CSS to apply only to screens with a width less than 500 pixels.

 

Which code segment should you use?

 

A.

@media resolution(max-width: 500px) {

. . .

}

B.

@media screen(min-width: Opx, max-width: 500px) {

. . .

}

C.

@media screen and (width <= 500px) {

. . .

}

D.

@media screen and (max-width: 500px) {

. . .

}

 

Correct Answer: D

 

 

 

 

QUESTION 75

You are designing a distributed banking application that handles multiple customers. A user may log on to the site to perform activities such as checking balances, performing transactions, and other activities that must be done securely. The application must store secure information that is specific to an individual user. The data must be automatically and securely purged when the user logs off. You need to save transient information in a secure data store. Which data store should you use?

 

A.

.NET session state

B.

.NET profile properties

C.

.NET application state

D.

Shared database

 

Correct Answer: A

 

 

QUESTION 76

You are developing an ASP.NET MVC application. The application must allow users to enter HTML in a feedback text box only. You need to disable request validation. What should you do?

 

A.

Use the HttpRequest.Form property to read the unvalidated form value.

B.

Apply and set the Validatelnput attribute on the controller action to FALSE.

C.

Use the HttpRequest.Unvalidated property to read the unvalidated form value.

D.

Apply and set the CausesValidation attribute on the controller action to FALSE.

 

Correct Answer: C

Explanation:

The HttpRequest.Unvalidated Property provides access to HTTP request values without triggering request validation.

 

 

QUESTION 77

You are developing an ASP.NET MVC application that supports multiple cultures and multiple languages. The application will be sold to international customers. The ASP.NET MVC application must store localized content in satellite assemblies for multiple languages. You need to generate the satellite assemblies during an automated build. Which tool should you use?

 

A.

Gacutil.exe

B.

Al.exe

C.

Ildasm.exe

D.

nasm.exe

 

Correct Answer: B

Explanation:

Use the Assembly Linker (Al.exe) to compile .resources files into satellite assemblies. Al.exe creates an assembly from the .resources files that you specify. By definition, satellite assemblies can only contain resources. They cannot contain any executable code.

 

The following Al.exe command creates a satellite assembly for the application MyApp from the file strings.de.resources.

 

al /t:lib /embed:strings.de.resources /culture:de /out:MyApp.resources.dll

 

 

QUESTION 78

You are preparing for the deployment of an ASP.NET MVC application. You need to generate a deployment manifest. Which command-line tool should you use?

 

A.

Mage.exe

B.

Ngen.exe

C.

ALexe

D.

Resgen.exe

 

Correct Answer: C

Explanation:

Al.exe generates a file with an assembly manifest from one or more files that are either resource files or Microsoft intermediate language (MSIL) files.

 

 

QUESTION 79

DRAG DROP

You are developing an ASP.NET MVC application. The application has a view that displays a list of orders in a multi-select list box.

 

You need to enable users to select multiple orders and submit them for processing.

 

What should you do?

 

To answer, drag the appropriate words to the correct targets. Each word 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_image011

 

Correct Answer:

clip_image013

 

 

QUESTION 80

DRAG DROP

You are developing an ASP.NET MVC application.

 

Before an action is executed, information about the action must be written to a log. After results are returned, information about the results also must be written to the log.

 

You need to log the actions and results.

 

You have the following code:

 

clip_image014

 

Which code segments should you include in Target 1, Target 2 and Target 3 to implement the LogActionFilter class?

 

To answer, drag the appropriate code segments to the correct targets. 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_image016

 

Correct Answer:

clip_image018

Free VCE & PDF File for Microsoft 70-486 Real Exam

Instant Access to Free VCE Files: MCSE|MCSA|MCITP…
Instant Access to Free PDF Files: MCSE|MCSA|MCITP…