70-486 Exam - Developing ASP.NET MVC 4 Web Applications

certleader.com

P.S. Download 70-486 preparation are available on Google Drive, GET MORE: https://drive.google.com/open?id=1rOrDkHtk6pEllGm7hSfvrFk5BVRaoEMl


New Microsoft 70-486 Exam Dumps Collection (Question 6 - Question 15)

Question No: 6

You are developing an ASP.NET MVC application to be used on the Internet. The environment does not use Active Directory.

Users must be able to log on to the application to maintain their personal preferences. You need to use the least amount of development effort to enable users to log on. What should you do?

A. Enable Digest authentication.

B. Enable Windows authentication.

C. Enable Forms authentication.

D. Generate server SSL certificates and install them in IIS.

Answer: C

Explanation:

Many Web applications require a way to restrict access to some resources (such as specific pages) so that those resources are accessible only to authenticated users. The default Web application project template for ASP.NET MVC provides a controller, data models, and views that you can use to add ASP.NET forms authentication to your application. The built-in functionality lets users register, log on and off, and change their password. For many applications, this functionality provides a sufficient level of user authentication.

Incorrect:

Not B: Windows authentication would require an Active Directory.

Windows authentication method works only if the following two conditions exist:

/ You set up your network to use the Kerberos authentication protocol that requires Active Directory.

/ You set up the computers and accounts on your network as trusted for delegation. References: https://msdn.microsoft.com/en-us/library/ff398049(VS.98).aspx


Question No: 7

You are developing an ASP.NET MVC application.

The application must allow users to enter JavaScript in a feedback text box only. You need to disable request validation.

What should you do?

A. Apply and set the CausesClientSideValidation attribute on the text box to FALSE.

B. Apply and set the ValidateInput attribute on the text box to FALSE.

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

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

Answer: C

Explanation:

The HttpRequest.Unvalidated property gets the HTTP request values without triggering request validation.

Request validation checks for HTML markup and script that might indicate a potential cross-site scripting attack. By default, all values are checked using request validation and if any values contain markup or script, ASP.NET throws an HttpRequestValidationException exception. Use this method if you anticipate that the request will contain markup (for example, you are allowing users to post content that contains markup) and you want to get the raw value of a request.

References: https://msdn.microsoft.com/en- us/library/system.web.httprequest.unvalidated.aspx


Question No: 8

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

Answer: C


Question No: 9

The application includes the following method. (Line numbers are included for reference only.)

When users attempt to retrieve a product from the product page, a run-time exception occurs if the product does not exist.

You need to route the exception to the CustomException.aspx page. Which line of code should you insert at line 05?

A. Option A

B. Option B

C. Option C

D. Option D

Answer: B


Question No: 10

You need to update the routes to ensure that a product is always displayed on the product page.

Which code segment should you use?

A. Option A

B. Option B

C. Option C

D. Option D

Answer: B


Question No: 11

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:

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 References: https://technet.microsoft.com/en-us/library/21a15yht(v=vs.85)


Question No: 12

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.

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

Answer: D

Explanation:

Screen is used for computer screens, tablets, smart-phones etc.

max-width is the maximum width of the display area, such as a browser window. References: http://www.w3schools.com/cssref/css3_pr_mediaquery.asp


Question No: 13

You are developing an ASP.NET MVC application. Devices that use many different browsers will use the application.

You have the following requirements:

You need to configure the application.

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

A. Use JavaScript to evaluate the window.innerWidth and window.innerHeigh properties.

B. Set the value of the width property for the viewport meta tag to device-width.

C. Use CSS to target the HTML element on each page. Set the values of the width and height properties to 100%.

D. Use CSS media queries to target screen size, device orientation, and other browser capabilities.

Answer: B,D

Explanation:

B: If you want the viewport width to match the deviceu2021s physical pixels, you can specify the following:

<meta name="viewport" content="width=device-width">

For this to work correctly, you must not explicitly force elements to exceed that width (e.g., using a width attribute or CSS property), otherwise the browser will be forced to use a larger viewport regardless.

D: Media queries in CSS3 extend the CSS2 media types idea: Instead of looking for a type of device, they look at the capability of the device.

Media queries can be used to check many things, such as: width and height of the viewport

width and height of the device

orientation (is the tablet/phone in landscape or portrait mode?) resolution

Using media queries are a popular technique for delivering a tailored style sheet to tablets, iPhone, and Androids.

References:

https://www.asp.net/whitepapers/add-mobile-pages-to-your-aspnet-web-forms-mvc- application

http://www.w3schools.com/css/css3_mediaqueries.asp


Question No: 14

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. Ngen.exe

C. Aspnet_merge.exe

D. EdmGen.exe

Answer: A

Explanation:

References: http://msdn.microsoft.com/en-us/library/zhhddkxy(v=vs.100).aspx


Question No: 15

You need to implement client-side animations according to the business requirements.

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

A. $ ("h1: first") .animate ({ opacity: 0 });

B. $("h1:first").fadeIn(1000);

C. $("h1:first").animate({ opacity: 1 });

D. $("h1:first").fadeOut(1000);

Answer: A,D

Explanation:

From scenario: Information about the first product on the product page must fade out over time to encourage the user to continue browsing the catalog.


P.S. Easily pass 70-486 Exam with Certleader Download Dumps & pdf vce, Try Free: https://www.certleader.com/70-486-dumps.html (182 New Questions)