getcertified4sure.com

Shortcuts To 70-486(21 to 30)




Actualtests provides 100% free of charge Microsoft 70-486 braindumps which guarantee your good results at the 1st attempt. No far more other sites can offer this promise. You will have quick access in order to our downloadable 70-486 examination engine software. Obtain the perfect Microsoft Microsoft training materials along with make entire preparation for the 70-486 exam. Youll find everything accessible that may appear in the Microsoft 70-486 exam. Our own Microsoft Microsoft exam questions and answers are generally in information and in depth. We create an interactive platform with regard to all the candidates. You are able to visit the webpage, along with talk with one another. So you will make progress quicker along with easier.

2021 Apr 70-486 practice question

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. - (Topic 4) 

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:


Q23. Topic 1, Olympic Marathon 

Background 

You are developing an ASP.NET MVC application in Visual Studio 2012 that will be used by Olympic marathon runners to log data about training runs. 

Business Requirements 

The application stores date, distance, and duration information about a user's training runs. The user can view, insert, edit, and delete records. 

The application must be optimized for accessibility. 

All times must be displayed in the user's local time. 

Technical Requirements 

Data Access: 

Database access is handled by a public class named 

RunnerLog.DataAccess.RunnerLogDb. 

All data retrieval must be done by HTTP GET and all data updates must be done by HTTP 

POST. 

Layout: 

All pages in the application use a master layout file named \Views\Shared\_Layout.cshtml. 

Models: 

The application uses the \Models\LogModel.cs model. 

Views: 

All views in the application use the Razor view engine. 

Four views located in \Views\RunLog are named: _CalculatePace.cshtml EditLog.cshtml GetLog.cshtml InsertLog.cshtml 

The application also contains a \Views\Home\Index.cshtml view. 

Controllers: 

The application contains a \Controllers\RunLogController.cs controller. 

Images: 

A stopwatch.png image is located in the \Images folder. 

Videos: 

A map of a runner's path is available when a user views a run log. The map is implemented 

as an Adobe Flash application and video. The browser should display the video natively if possible, using H264, Ogg, or WebM formats, in that order. If the video cannot be displayed, then the Flash application should be used. 

Security: 

You have the following security requirements: The application is configured to use forms authentication. Users must be logged on to insert runner data. Users must be members of the Admin role to edit or delete runner data. There are no security requirements for viewing runner data. You need to protect the application against cross-site request forgery. Passwords are hashed by using the SHA1 algorithm. 

RunnerLog.Providers.RunLogRoleProvider.cs contains a custom role provider. 

Relevant portions of the application files follow. (Line numbers are included for reference only.) 

Application Structure 

- (Topic 1) 

You need to ensure that the application uses RunLogRoleProvider custom role provider. 

How should you modify the web.config file? (To answer, drag the appropriate line of code to the correct location or locations. Each line of code 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: 


Q24. - (Topic 2) 

You need to configure session storage in the web.config file to meet the technical requirements for scalability. 

Which SessionState mode should you use? (Each correct answer presents a complete solution. Choose all that apply.) 

A. StateServer 

B. InProc 

C. AutoDetect 

D. SqlServer 

Answer: A,D 


Q25. - (Topic 2) 

You updated the web.config file with the HTTP run-time value required to display an alternative version of the site. 

You need to ensure that the correct page displays to the users. 

Which code segment should you use to update the controller? 

A. If (Request.IsTabletDevice) 

B. If (Request.Browser.IsBrowser("Mobile")) 

C. If (Request.UserAgent["Tablet"]) 

D. If (Request.Browser.IsMobileDevice) 

Answer:


Most up-to-date 70-486 actual exam:

Q26. DRAG DROP - (Topic 4) 

You are developing an ASP.NET MVC application in a web farm. The application has a page that uploads a customer's photo, resizes it, and then redirects the browser to a page where the new image is displayed along with the final dimensions. 

The final dimensions should be available only to the page where the new image is displayed. 

You need to store state and configure the application. 

What should you do? (To answer, drag the appropriate item to the correct location. Each item 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 are developing an ASP.NET MVC web application for viewing a list of contacts. The application is designed for devices that support changes in orientation, such as tablets and smartphones. The application displays a grid of contact tiles in portrait mode. 

When the orientation changes to landscape, each tile in the grid expands to include each contact's details. The HTML that creates the tiled interface resembles the following markup. 

The CSS used to style the tiles in landscape mode is as follows. 

If this CSS is omitted, the existing CSS displays the tiles in portrait mode. 

You need to update the landscape-mode CSS to apply only to screens with a width greater than or equal to 500 pixels. 

Which code segment should you use? 

A. @media screen and (width >= 500px) { … } 

B. @media screen and (min-width: 500px) { … } 

C. @media screen(min-width: 500px, max-width: 1000px) { … } 

D. @media resolution(min-width: 500px) { … } 

Answer:

Explanation: http://www.javascriptkit.com/dhtmltutors/cssmediaqueries.shtml 


Q28. - (Topic 4) 

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:

Explanation: Provides access to HTTP request values without triggering request validation. 

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


Q29. - (Topic 4) 

You are developing an ASP.NET MVC application. The application is deployed in a web farm and is accessed by many users. 

The application must handle web server failures gracefully. The servers in the farm must share the short-term state information. 

You need to persist the application state during the session. 

What should you implement? 

A. ASP.NET session state 

B. A local database 

C. A state server 

D. Profile properties 

Answer:


Q30. - (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 Exceptions. Disable the User-unhandled check box for Common Language Runtime Exceptions. 

C. Add the following code to the web.config file of the application. 

<customErrors mode="On" > 

<error statusCode="500" redirect="CustomErrors.html" /> 

</customErrors> 

D. Add the following code to the web.config file of the application. 

<customErrors mode="On" > 

<error statusCode="404" redirect="CustomErrors.html" /> 

</customErrors> 

Answer: