QUESTION 51

DRAG DROP

You are developing an ASP.NET MVC application in Visual Studio. The application supports multiple cultures.

 

To set the culture, the application must use the AcceptLanguage header field value sent by the client browser.

 

You need to ensure that the application can set the culture.

 

You have the following markup in the web.config file:

 

clip_image002

 

Which markup segments should you include in Target 1, Target 2 and Target 3 to complete markup?

 

To answer, drag the appropriate markup segments to the correct targets. Each markup 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_image003

 

Correct Answer:

clip_image004

 

 

 

 

 

 

 

 

 

 

 

 

QUESTION 52

HOTSPOT

You are developing an ASP.NET MVC web application that enables users to open Microsoft Excel files.

 

The current implementation of the ExcelResult class is as follows.

 

clip_image006

 

You need to enable users to open Excel files.

 

How should you implement the ExecuteResult method?

 

To answer, select the appropriate options in the answer area.

 

clip_image007

 

Correct Answer:

clip_image008

 

 

QUESTION 53

DRAG DROP

You are developing an ASP.NET MVC web application that requires HTML elements to take on new behaviors. These should be implemented with a behavior script in a page that is only for Microsoft Internet Explorer users.

 

The colorchange.js script uses the Microsoft CSS vendor-specific Behavior extension. You need to apply the script with CSS.

 

You need to use the script to change the color of text.

 

You have the following markup:

 

clip_image010

 

Which styles should you include in Target 1 and Target 2 to complete the markup?

 

To answer, drag the appropriate styles to the correct targets. Each style 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_image012

 

Correct Answer:

clip_image014

 

 

QUESTION 54

You are designing a distributed application.

 

The application must store a small amount of insecure global information that does not change frequently.

 

You need to configure the application to meet the requirements.

 

Which server-side state management option should you use? (Each correct answer presents a complete solution. Choose all that apply.)

 

A.

Application state

B.

Session state

C.

Database support

D.

Profile properties

 

Correct Answer: AC

 

 

QUESTION 55

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 mul
tiple 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_image016

 

Correct Answer:

clip_image018

 

 

 

 

QUESTION 56

You are designing a localized ASP.NET application to support multiple cultures.

 

You need to ensure that the application can be displayed in several languages.

 

How should you implement this feature?

 

A.

Use a resource (.resx) file.

B.

Include language-specific content in the assembly manifest.

C.

Use Systems.Collections.Generics.Dictionary to store alternative translations.

D.

Ensure that all strings are marked internal.

 

Correct Answer: A

 

 

QUESTION 57

You develop an ASP.NET MVC application. The application has a controller named PeopleController.cs. The controller has an action method that returns a parent view. The parent view includes the following code. Line numbers are included for the reference only.

 

clip_image020

 

The application also contains a partial view named People. The parent view must display the partial view.

 

You need to add code at line 09 to display the partial view within the parent view.

 

Which two code segments will achieve the goal? Each correct answer presents a complete solution.

 

A.

@{ Html.RenderPartial(“People”, Model);}

B.

@Html.Partial(“People”, Model)

C.

@Html.Display(“People”, Model)

D.

@Html.Raw(“People”)

 

Correct Answer: B

Explanation:

By default, any partial view rendered by calling @Html.Partial(“PartialViewName”) will get the view model passed to the parent view.

 

Reference:

How to populate mvc razor partial view

http://stackoverflow.com/questions/13769707/how-to-populate-mvc-razor-partial-view

 

 

QUESTION 58

DRAG DROP

You are developing an ASP.NET MVC application in Visual Studio.

 

The application contains an area that is defined as shown in the following graphic.

 

clip_image022

 

The ActionLink method must invoke the GetOrders() action in ExternalOrderController.

 

You need to configure the parameters of the ActionLink method.

 

You have the following markup.

 

clip_image024

 

Which markup segments should you include in Target 1, Target 2 and Target 3 to complete the markup?

 

To answer, drag the appropriate markup segment to the correct targets. Each markup 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_image026

 

Correct Answer:

clip_image028

 

 

QUESTION 59

You are developing an ASP.NET MVC application that enables you to edit and save a student object.

 

The application must not retrieve student objects on an HTTP POST request.

 

You need to implement the controller.

 

Which code segment should you use? (Each correct answer presents a complete solution. Choose all that apply.)

 

clip_image030

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: CD

 

 

QUESTION 60

DRAG DROP

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_image032_Layout.WP7.cshtml

clip_image032[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 Application_Start method?

 

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_image034

 

Correct Answer:

clip_image036

 

 

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

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