70-486 Real Exam Dumps Questions and answers 21-30

Get Full Version of the Exam
http://www.EnsurePass.com/70-486.html

Question No.21

You are designing an HTML5 website. You need to design the interface such that the content is viewable in all types of browsers, including screen readers. What should you do? (Each correct answer presents a complete solution. Choose all that apply.)

A.

Ensure that content elements have valid and descriptive names.

B.

Use Resource Description Framework (RDF) to describe content elements.

C.

Convert HTML forms to XForms.

D.

Use HTML5 semantic markup elements.

E.

Annotate content elements with Accessible Rich Internet Application (ARIA) attributes.

Answer: DE

Question No.22

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: ProductDictionary.resx

image

ProductDictionary.es.resx

image

ProductDictionary.fr.resx

image

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

image

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(quot;ProductDictionaryquot;, quot;Currencyquot;, new System.Globalization.CultureInfo(Me

C.

VievBag.LocalizedCurrency = HttpContext.GetLocalResourceObject(quot;ProductDictionaryquot;, quot;Currencyquot;);

D.

ViewBag.LocalizedCurrency = HttpContext.GetGlobalResourceObject(quot;ProductDictionaryquot;, quot;Currencyquot;);

Answer: A

Question No.23

You are developing an ASP.NET MVC application. You need to authenticate clients by using an ASP.NET membership database. Which authentication method should you implement?

A.

Kerberos

B.

Forms

C.

Basic

D.

Windows

Answer: B

Question No.24

You are developing an ASP.NET MVC application that will be deployed on a web farm. Passwords must be stored in the web.config file and must not be readable or in a format that is easily decodable. You need to encrypt the passwords that are stored in the web.config file. Which command-line tool should you use?

A.

Aspnet_regiis.exe

B.

Aspnet_regbrowsers.exe

C.

Aspnet_setreg.exe

D.

Aspnet_compiler.exe

Answer: A

Question No.25

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

image

You need to test the GoldMined method. Which unit test should you use?

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Answer: D

Question No.26

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 Langu 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 Comm Runtime Exceptions.

D.

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

Answer: A

Question No.27

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.

image

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 lt;= 500px) {

. . .

}

D.

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

. . .

}

Answer: D

Question No.28

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

Answer: A

Question No.29

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.

Answer: C

Explanation/Reference: Explanation/Reference: Explanation:

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

Question No.30

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

Answer: B

Explanation/Reference: Explanation/Reference: 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

Get Full Version of 70-486 Dumps

Tagged

Leave a Reply

Your email address will not be published. Required fields are marked *