70-486 Real Exam Dumps Questions and answers 71-80

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

Question No.71

You are employed as a developer at ABC.com. ABC.com has a single Active Directory domain, named ABC.com. You make use of Visual Studio 2012 to create new ASP.NET MVC web applications for ABC.com. You are currently running a training exercise for junior developers. You are discussing SessionState modes. Which of the following is the default SessionState mode?

A.

The In-process mode.

B.

The Off mode.

C.

The SQLServer mode.

D.

The StateServer mode.

E.

The Custom mode.

Answer: A

Question No.72

You are employed as a developer at ABC.com. ABC.com has a single Active Directory domain, named ABC.com. You make use of Visual Studio 2012 to create new ASP.NET MVC web applications for ABC.com. You are currently running a training exercise for junior developers. You are discussing state management options that allows the storing of data on the server. You are currently dealing with the option that allows you to store user-specific data. Which of the following is the option being discussed?

A.

Query Strings.

B.

Application State.

C.

Profile Properties.

D.

Session State.

E.

View State.

Answer: C

Question No.73

You are employed as a developer at ABC.com. ABC.com has a single Active Directory domain, named ABC.com. You make use of Visual Studio 2012 to create new ASP.NET MVC web applications for ABC.com. You are currently running a training exercise for junior developers. You are discussing the HttpWorkerRequest methods. You are currently dealing with a method that returns the specified member of the request header. Which of the following is the method being discussed?

A.

GetHttpVersion.

B.

GetHttpVerbName.

C.

GetHashCode.

D.

GeABCnownRequestHeaderName.

E.

GeABCnownResponseHeaderIndex.

Answer: B

Question No.74

You are employed as a developer at ABC.com. ABC.com has a single Active Directory domain, named ABC.com. You make use of Visual Studio 2012 to create new ASP.NET MVC web applications for ABC.com. You are currently running a training exercise for junior developers. You are discussing the HttpWorkerRequest methods. You are currently dealing with a method that returns all nonstandard HTTP header name-value pairs. Which of the following is the method being discussed?

A.

GetUnknownRequestHeaders.

B.

GetUnknownRequestHeader.

C.

GeABCnownRequestHeaderName.

D.

GeABCnownResponseHeaderIndex.

Answer: A

Question No.75

You are employed as a developer at ABC.com. ABC.com has a single Active Directory domain, named ABC.com. You make use of Visual Studio 2012 to create new ASP.NET MVC web applications for ABC.com. You are currently running a training exercise for junior developers. You are discussing a class that converts task-returning asynchronous methods into methods that use the asynchronous programming model used in previous versions of ASP.NET. Which of the following is the class being discussed?

A.

The EventHandlerTaskAsyncHelper class.

B.

The HttpServerUtilityBase class.

C.

The HttpRuntime class.

D.

The HttpResponse class.

Answer: A

Question No.76

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

Answer: BCE

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

lt;configurationgt;

lt;appSettingsgt;

lt;add key=quot;ClientValidationEnabledquot; value=quot;truequot; /gt; lt;add key=quot;UnobtrusiveJavaScriptEnabledquot; value=quot;truequot; /gt; lt;/appSettingsgt;

lt;/configurationgt;

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 No.77

You are developing an ASP.NET MVC application that will run on Azure.

The application uses Event Tracing for Windows (ETW) for logging operations.

You need to retrieve the ETW data for the application from a deployed Azure instance by using the Azure Diagnostics API.

Which data source should you use?

A.

Azure Diagnostic infrastructure logs

B.

Windows event logs

C.

performance counters

D.

.NET EventSource

Answer: D

Explanation/Reference: Explanation/Reference: Explanation:

Azure Diagnostics 1.2 and 1.3 are Azure extensions that enable you to collect diagnostic telemetry data from a worker role, web role, or virtual machine running in Azure. Diagnostics 1.2 and 1.3 enable the collection of ETW and .NET EventSource events.

Example: EtwProvidersgt;

lt;EtwEventSourceProviderConfiguration provider=quot;SampleEventSourceWriterquot; scheduledTransferPeriod=quot;PT5Mquot;gt;

lt;Event id=quot;1quot; eventDestination=quot;EnumsTablequot;/gt;

lt;Event id=quot;2quot; eventDestination=quot;MessageTablequot;/gt;

lt;Event id=quot;3quot; eventDestination=quot;SetOtherTablequot;/gt; lt;Event id=quot;4quot; eventDestination=quot;HighFreqTablequot;/gt; lt;DefaultEvents eventDestination=quot;DefaultTablequot; /gt;

lt;/EtwEventSourceProviderConfigurationgt;

lt;/EtwProvidersgt;

Reference:

Enabling Diagnostics in Azure Cloud Services and Virtual Machines https://azure.microsoft.com/sv-se/documentation/articles/cloud-services-dotnet-diagnostics/

Question No.78

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

image

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 quot;year- changerquot;.

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?

image

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Answer: B

Explanation/Reference: Explanation/Reference: Explanation:

jQuery code will bind the slider control to the div.

$(document).ready(function(){

$(quot;#sliderquot;).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

Question No.79

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.

image

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(quot;Peoplequot;, Model);}

B.

@Html.Partial(quot;Peoplequot;, Model)

C.

@Html.Display(quot;Peoplequot;, Model)

D.

@Html.Raw(quot;Peoplequot;)

Answer: B

Explanation/Reference: Explanation/Reference: Explanation:

By default, any partial view rendered by calling @Html.Partial(quot;PartialViewNamequot;) 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

Question No.80

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: CD

Get Full Version of 70-486 Dumps