Skip to content

The Secret of Microsoft 70-486 practice test

It is more faster and easier to pass the Microsoft 70 486 book exam by using Highest Quality Microsoft Developing ASP.NET MVC 4 Web Applications questuins and answers. Immediate access to the Renewal exam 70 486 Exam and find the same core area 70 486 dumps pdf questions with professionally verified answers, then PASS your exam with a high score now.

2017 NEW RECOMMEND

Free VCE & PDF File for Microsoft 70-486 Real Exam
(Full Version!)

Pass on Your First TRY 100% Money Back Guarantee Realistic Practice Exam Questions

Free Instant Download NEW 70-486 Exam Dumps (PDF & VCE):
Available on:
http://www.certleader.com/70-486-dumps.html

Q21. – (Topic 4) 

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:

Q22. HOTSPOT – (Topic 4) 

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. 

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

Answer: 

Q23. – (Topic 4) 

You are preparing for the deployment of an ASP.NET MVC application. You need to generate a deployment manifest. 

Which command-line tool should you use? 

A. Mage.exe 

B. Ngen.exe 

C. ALexe 

D. Resgen.exe 

Answer:

Explanation: Al.exe generates a file with an assembly manifest from one or more files that are either resource files or Microsoft intermediate language (MSIL) files. 

Q24. – (Topic 4) 

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. 

Answer:

Q25. – (Topic 3) 

You need to ensure that developers can connect to a Microsoft Azure role by using RDP. 

What should you do? 

A. Export a certificate with a private key. Upload the .pfx file to the Certificates section under the TranscodeWorkerRole hosted service on the Azure Management Portal. 

B. Export a certificate with a private key. Upload the .pfx file to the Management Certificates section on the Azure Management Portal. 

C. Export a certificate without a private key. Upload the .cer file to the Management Certificates section on the Azure Management Portal. 

D. Export a certificate without a private key. Upload the .cer file to the Certificates section under the TranscodeWorkerRole hosted service on the Azure Management Portal. 

Answer:

Explanation: In case you don’t want to use the RDP certificate created by Windows Azure Tools and want to use a custom certificate instead, the following steps will guide you. These steps can also be used in case package is not being published from Visual Studio rather it is being built locally, saved in either Local Machine's Drive or Windows Azure Blob Storage and subsequently published from there. 

Here are the steps which are required to get pass the publishing error which you might be running into. You would need to upload the Certificate with Private Key to the portal (when Visual Studio is used this is done in the background). 

Detailed steps. 

1. 

In Visual Studio, go to the solution which is being developed. 

2. 

Right click the Web Project -> Configure Remote Desktop -> click on View to see Certificate details (Since I don’t have a custom certificate I will use one create by Windows Azure Tools itself) 

3. 

Go to Details tab on Certificate -> Click Copy to file.. -> Next -> Select ‘Yes, export the private key’ -> Next -> Continue with default setting and create a password when asked (please refer below screenshots) 

4. 

These steps will generate a .PFX file for this certificate. Now we need to upload this certificate to the portal (for the respective cloud service) 

5. 

Go to the Azure Management Portal -> Go to the Cloud Service in question -> Certificates Tab -> Upload the newly created certificate (.PFX file) 

Note: 

The certificates that you need for a remote desktop connection are different from the certificates that you use for other Azure operations. The remote access certificate must have a private key. 

Microsoft Azure uses certificates in three ways: / Management certificates – Stored at the subscription level, these certificates are used to enable the use of the SDK tools, the Windows Azure Tools for Microsoft Visual Studio, or the Service Management REST API Reference. These certificates are independent of any cloud service or deployment. / Service certificates – Stored at the cloud service level, these certificates are used by your deployed services. / SSH Keys – Stored on the Linux virtual machine, SSH keys are used to authenticate remote connections to the virtual machine. 

Reference: How to use Custom Certificate for RDP to Windows Azure Roles 

http://blogs.msdn.com/b/cie/archive/2014/02/22/how-to-use-custom-certificate-for-rdp-to-windows-azure-roles.aspx 

Q26. DRAG DROP – (Topic 4) 

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: 

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

Answer: 

Q27. – (Topic 4) 

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. 

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

Answer:

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 

Q28. – (Topic 4) 

You are designing a distributed application that runs on the Microsoft Azure platform. 

The application must store a small amount of insecure global information for all users 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. profile properties of the Microsoft Azure application 

B. Microsoft Azure session state 

C. SQL Database 

D. Microsoft Azure application state 

Answer:

Explanation: In many applications, you want to store and use information that is unique to a user. When a user visits your site, you can use the information you have stored to present the user with a personalized version of your Web application. Personalizing an application requires a number of elements: you must store the information using a unique user identifier, be able to recognize users when they visit again, and then fetch the user information as needed. To simplify your applications, you can use the ASP.NET profile feature, which can perform all of these tasks for you. 

Q29. – (Topic 2) 

You are designing a Windows Communication Foundation (WCF) service that uses the Product class. 

You need to update the class to meet the storage requirement. 

What should you do? (Each correct answer presents part of the solution. Choose all that apply.) 

A. Mark the Product class with the DataContract attribute. 

B. Mark the public members of the Product class with the DataContractFormat attribute. 

C. Mark the Product class with the CollectionDataContract attribute. 

D. Mark the public members of the Product class with the DataMember attribute. 

Answer: A,D 

Explanation: So as of .NET 3.5 SP1, you don't have to add data contract or data member 

attributes anymore – if you don't then the data contract serializer will serialize all public 

properties on your class, just like the XML serializer would. 

HOWEVER: by not adding those attributes, you lose a lot of useful capabilities: 

. without [DataContract], you cannot define an XML namespace for your data to live 

in . without [DataMember], you cannot serialize non-public properties or fields . without [DataMember], you cannot define an order of serialization (Order=) and the 

DCS will serialize all properties alphabetically . without [DataMember], you cannot define a different name for your property (Name=) . without [DataMember], you cannot define things like IsRequired= or other useful attributes . without [DataMember], you cannot leave out certain public properties – all public properties will be serialized by the DCS 

Q30. – (Topic 4) 

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:

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