[Free] Download New Updated (August 2016) Microsoft 70-494 Real Exam 71-80

Ensurepass

QUESTION 71

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

 

The application contains three resource files in the Resources directory:

 

clip_image002My Dictionary.resx

clip_image002[1]MyDictionary.es.resx

clip_image002[2]MyDictionary.fr.resx

 

Each file contains a public resource named Title with localized translation.

 

The application is configured to set the culture based on the client browser settings.

 

The application contains a controller with the action defined in the following code segment. (Line numbers are included for reference only.)

 

clip_image004

 

You need to set ViewBag.Title to the localized title contained in the resource files.

 

Which code segment should you add to the action at line 03?

 

A.

ViewBag.Title = HttpContext.GetGlobalResourceObuect(“MyDictionary”, “Title”);

B.

ViewBag.Title = HttpContext.GetGlobalResourceObject(“MyDictionary”, “Title”, new System.Globalization.CultureInfo(“en”));

C.

ViewBag.Title = Resources.MyDictionary.Title;

D.

ViewBag.Title = HttpContext.GetLocalResourceObject(“MyDictionary”, “Title”);

 

Correct Answer: C

 

 

QUESTION 72

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

 

The application contains three resource files in the Resources directory:

 

clip_image002[3]ProductDictionary.resx

clip_image002[4]ProductDictionary.es.resx

clip_image002[5]ProductDictionary.fr.resx

 

Each file contains a public resource named Currency with the localized currency symbol. The application is configured to set the culture based on the client browser settings.

 

The application contains a controller with the action defined in the following code segment. (Line numbers are included for reference only.)

 

clip_image005

 

You need to set ViewBag.LocalizedCurrency to the localized currency contained in the resource files.

 

Which code segment should you add to the action at line 03?

 

A.

ViewBag.LocaIizedCurrency = Resources.ProductDictionary.Currency;

B.

VievBag.LocalizedCurrency = HttpContext.GetGlobalResourceObject(“ProductDictionary”, “Currency”, new System.Globalization.CultureInfo(Men”));

C.

VievBag.LocalizedCurrency = HttpContext.GetLocalResourceObject(“ProductDictionary”, “Currency”);

D.

ViewBag.LocalizedCurrency = HttpContext.GetGlobalResourceObject(“ProductDictionary”, “Currency”);

 

Correct Answer: A

 

 

QUESTION 73

You are developing an ASP.NET MVC application that will be deployed to servers on multiple networks.

 

The application must be compatible with multiple browsers. You must track the page number that the user is viewing in search results.

 

You need to program the location for storing state information.

 

Where should you persist state information?

 

A.

Session

B.

QueryString

C.

Application

D.

TempData

 

Correct Answer: B

 

 

 

QUESTION 74

DRAG DROP

You are developing an ASP.NET MVC application that authenticates a user by using claims-based authentication.

 

The application must:

 

clip_image002[6]Use Windows Identity Foundation 4.5.

clip_image002[7]Support the Windows Azure Access Control Service.

 

You need to implement authentication.

 

You have the following code:

 

clip_image007

 

Which code segments should you include in Target 1, Target 2, Target 3 and Target 4 to build the class constructor?

 

To answer, drag the appropriate code segment to the correct targets in the answer area. 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_image009

 

Correct Answer:

clip_image011

 

 

QUESTION 75

You need to enable client-side validation for an ASP.NET MVC application.

 

Which three actions should you perform? Each correct answer presents part of the solution.

 

A.

Attach a custom validation attribute to the model properties that the view uses.

B.

Reference the jquery, jquery.validate and jquery.validate.unobtrusive script files in the view.

C.

Open the web.config file at the project root, and set the values of the ClientValidationEnabled and UnobtrusiveJavaScriptEnabled keys to True.

D.

For each form element, use the Validator.element() method to validate each item.

E.

Add data annotations to the model properties that the view uses.

 

Correct Answer: BCE

Explanation:

B: The validation can be implemented using jQuery and jQuery validation plug-in (jquery.validate.min.js and jquery.validate.unobtrusive.min.js).

C: When you are developing an MVC application in Visual Studio 2012 then the client-side becomes enabled by default, but you can easily enable or disable the writing of the following app setting code snippet in the web.config file.

<configuration>

<appSettings>

<add key=”ClientValidationEnabled” value=”true” />

<add key=”UnobtrusiveJavaScriptEnabled” value=”true” />

</appSettings>

</configuration>

 

E: The jQuery validation plug-in takes advantage of the Data Annotation attributes defined in the model, which means that you need to do very little to start using it.

 

Reference:

ASP.NET MVC Client Side Validation

http://www.codeproject.com/Articles/718004/ASP-NET-MVC-Client-Side-Validation

 

 

QUESTION 76

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 77

You are developing an ASP.NET MVC news aggregation application that will be deployed to servers on multiple networks.

 

The application must be compatible with multiple browsers. A user can search the website for news articles. You must track the page number that the user is viewing in search results.

 

You need to program the location for storing state information about the user’s search.

 

What should you do?

 

A.

Store search results and page index in Session.

B.

Use Application state to store search terms and page index.

C.

Use QueryString to store search terms and page index.

D.

Store search results and page index in TempData

Correct Answer: C

 

 

QUESTION 78

You are developing an ASP.NET MVC application.

 

You need to authenticate clients by using NT LAN Manager (NTLM).

 

Which authentication method should you implement?

 

A.

Basic

B.

Windows

C.

Forms

D.

Kerberos

 

Correct Answer: B

Explanation:

http://msdn.microsoft.com/en-us/library/aa292114(v=vs.71).aspx

 

 

QUESTION 79

You are developing a new ASP.NET MVC application that will be hosted on Microsoft Azure. You need to implement caching.

 

The caching solution must support the following:

 

clip_image002[8]The cache must be able to store out-of-process ASP.NET session state.

clip_image002[9]The cache must be able to store a variety of data types.

clip_image002[10]The cache must offer a large amount of space for cached content.

clip_image002[11]You must be able to share output cache content across web server instances.

 

You need to select a cache solution.

 

Which caching solution should you choose?

 

A.

ASP.NET Caching

B.

Azure In-Role Cache

C.

Azure Redis Cache

D.

Azure Managed Cache Service

 

Correct Answer: C

Explanation:

Reference:

How to Use Azure Redis Cache

https://azure.microsoft.com/sv-se/documentation/articles/cache-dotnet-how-to-use-azure-redis-cache/

 

 

 

 

 

 

 

 

QUESTION 80

You are implementing a website redesign of an existing website that provides historical weather condition maps. The current layout resembles the following graphic.

 

clip_image012

 

Year selection is implemented as a set of links, which causes the page to reload when the user changes the year. The year selection HTML is contained in a div with an id of “year- changer”.

 

You need to modify the page so that the user can change the year without the page reloading. You also need to ensure that there is minimal change to the design of the page.

 

Which code segment should you use?

 

clip_image014

A.

Option A

B.

Option B

< span lang="EN-US" style="font-family: ; mso-font-kerning: 0pt; mso-no-proof: yes">C.

Option C

D.

Option D

 

Correct Answer: B

Explanation:

jQuery code will bind the slider control to the div.

$(document).ready(function(){

$(“#slider”).slider();

});

Now, when you run this page then you will see a long slider on page with no range. As we have not specified any range.slider control comes with various options/properties which can be set. Here are few of them.

1. min : Minimum value allowed for the slider.

2. max : Maximum allowed value for the slider.

3. step : How much you want to increment when you slide. Default is 1.

4. value : set default value of the slider.

 

Reference:

Implement jQuery UI slider with ASP.NET

http://www.jquerybyexample.net/2010/09/implement-jquery-ui-slider-with-aspnet.html

 

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…