Ensurepass

QUESTION 71

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:

 

image075_Layout.WP7.cshtml

image075[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, select the appropriate option from the drop-down list in the answer area.)

 

image137

image138

 

Correct Answer:

image139

 

 

 

 

QUESTION 72

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.

 

image140

 

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 73

You are employed as a developer at ABC.com. ABC.com has a single Active Directory domain, named ABC.com. You have received instructions to create a new ABC.com website, using HTML5. You have been informed that the interface has to allow for the web page content to be accessible to disabled users. Which of the following actions should you take?

 

A.

You should consider including the use of File API attributes.

B.

You should consider including the use of WebSocket API attributes.

C.

You should consider including the use of Accessible Rich Internet Application (ARIA) attributes.

D.

You should consider including the use of Geolocation attributes.

E.

You should consider including the use of Indexed Database API attributes.

 

Correct Answer: C

 

 

QUESTION 74

You are employed as a developer at ABC.com. ABC.com has a single Active Directory domain, named ABC.com. You are making use of Visual Studio 2012 to create a new ASP.NET MVC web application for ABC.com. You want to make sure that the new application has access to content files located on the same IIS instance as the application. Subsequent to initializing the application, you find that there are problems relating to the application’s performance. Which of the following actions should you take fix the problem?

 

A.

You should consider including the use of WebSocket API attributes.

B.

You should consider making use of ASP.NET MVC bundling to join the content files.

C.

You should consider including the use of Accessible Rich Internet Application (ARIA) attributes.

D.

You should consider making use of ASP.NET MVC bundling to separate the content files.

 

Correct Answer: B

 

 

QUESTION 75

You are employed as a developer at ABC.com. ABC.com has a single Active Directory domain, named ABC.com. You are making use of Visual Studio 2012 to create a new ASP.NET MVC web application for ABC.com. The new application allows for users from various countries to access the application based on their respective cultures. As a result, the application includes various resource files in the Resources directory. These files include a public resource with localized translation. You are required to make use of a specific WebViewPage property so that the application sets the user’s client browser according to the settings. Which of the following actions should you take?

 

A.

You should consider making use of the ViewContext property.

B.

You should consider making use of the Html property.

C.

You should consider making use of the ViewBag property.

D.

You should consider making use of the ViewData property.

 

Correct Answer: C

 

 

 

QUESTION 76

You are employed as a developer at ABC.com. ABC.com has a single Active Directory domain, named ABC.com. You have recently developed an ASP.NET application for ABC.com. You are planning to assess the new application by running tests that target the application’s business layer. Which of the following actions should you take?

 

A.

You should consider making use of a Windows Forms Control.

B.

You should consider making use of a Coded UI Test Project.

C.

You should consider making use of a Unit Test Project.

D.

You should consider making use of a Web Performance and Load Test Performance Project.

 

Correct Answer: C

 

 

QUESTION 77

You are employed as a developer at ABC.com. ABC.com has a single Active Directory domain, named ABC.com. You are in the process of creating unit tests that makes use of sealed classes. You want to make sure that dependencies in the unit tests are suitably created, maintained, and injected. You want to configure the use of a suitable isolation method. Which of the following actions should you take?

 

A.

You should consider making use of counterfoil type isolation methods.

B.

You should consider making use of remnant type isolation methods.

C.

You should consider making use of shim type isolation methods.

D.

You should consider making use of stump type isolation methods.

 

Correct Answer: C

 

 

QUESTION 78

You are employed as a developer at ABC.com. ABC.com has a single Active Directory domain, named ABC.com. You are making use of Visual Studio 2012 to create a new ASP.NET MVC application for ABC.com. Upon initialization of the application, you find that exceptions are thrown and handled. You are required to find out what the state of the application is at the time of the exception being thrown. You should consider selecting Exceptions from the DEBUG menu in Visual Studio 2012. Which of the following actions should you take? (Choose all that apply.)

 

A.

You should also consider selecting the User-unhandled check box for Common Language Runtime Exceptions option.

B.

You should also consider selecting the Usehandled check box for Common Language Runtime Exceptions option.

C.

You should also consider de-selecting the User-unhandled check box for Common Language Runtime Exceptions option.

D.

You should also consider de-selecting the User-unhandled check box for Common Language Runtime Exceptions option.

 

Correct Answer: C

 

 

QUESTION 79

You are employed as a developer at ABC.com. ABC.com has a single Active Directory domain, named ABC.com. You are making use of Visual Studio 2012 to create a new ASP.NET MVC application for ABC.com. The new application should be installed on ABC.com servers located on various networks. Furthermore, the application should be configured to collect news articles for users to browse. The application should, therefore, be accessible via various browsers to allow users to search the site. You have been instructed to make sure that the page numbers viewed by users in the search results are tracked. To do this, you are required to make sure that the location for storing state data, with reference to the user’s search, is configured. Which of the following actions should you take?

 

A.

You should consider storing search terms and page index by making use of Query.

B.

You should consider storing search terms and page index by making use of String.

C.

You should consider storing search terms and page index by making use of QueryString.

D.

You should consider storing search terms and page index by making use of Search.

 

Correct Answer: C

 

 

QUESTION 80

You are employed as a developer at ABC.com. ABC.com has a single Active Directory domain, named ABC.com. You are making use of Visual Studio 2012 to create a new ASP.NET MVC application for ABC.com. ABC.com has a web farm that will host the new application. You have been informed that the application should allow for web server failures to be handled without much fuss. Furthermore, state data should be shared between the farm servers. You are preparing to persist the application state during the session. Which of the following actions should you take?

 

A.

You should consider making use of a state server.

B.

You should consider making use of a global catalog server.

C.

You should consider making use of a file server.

D.

You should consider making use of a database server.

 

Correct Answer: A

 

Instant Access to Download Latest Complete Collection of Microsoft 70-486 Real Exam

Try Microsoft 70-486 Free Demo