exam questions

Exam 70-486 All Questions

View all questions & answers for the 70-486 exam

Exam 70-486 topic 3 question 14 discussion

Actual exam question from Microsoft's 70-486
Question #: 14
Topic #: 3
[All 70-486 Questions]

HOTSPOT -
You need to implement the mobile device support requirements.
How should you build the ProcessRequest method? (To answer, select the appropriate options in the answer area.)
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
OS
Highly Voted 5 years, 10 months ago
This browser and device request is missing in the background information: -> The application must support image format conversions from .bmp to .png for desktop devices.
upvoted 11 times
advenios
5 years, 6 months ago
That explains why image/png is correct....
upvoted 6 times
...
majco333
5 years, 4 months ago
Wrong background information. Correct is: -> The application must support image format conversions from .bmp to .jpeg for mobile devices. Therefore is correct image/bmp for normalFormat
upvoted 2 times
majco333
5 years, 3 months ago
Background isn't completed. Original background: Browser and device support: The application must support image format conversions from .bmp to .jpeg for mobile devices. The application must support image format conversions from .bmp to .png for desktop devices. Result: PNG is correct
upvoted 6 times
...
...
...
markcowell
Highly Voted 4 years, 8 months ago
protected override void ProcessRequest(HttpContext httpContext) { var response = httpContext.Response var mobileFormat = "image/jpeg"; var normalFormat = "image/png"; if (httpContext.Response.ContentType=="image/bmp") { if (httpContext.Request.Browser.IsMobileDevice) { WriteImage(response,mobileFormat); } else { WriteImage(response,normalFormat) } } else { base.ProcessRequest(httpContext) } }
upvoted 5 times
...
markcowell
Most Recent 4 years, 8 months ago
General: The web store application is in a load-balanced web farm. The load balancer is not configured to use server affinity. The web store application is an ASP.NET MVC application written in Visual Studio 2012. Products: The value of the productId property must always be greater than 0. The Products page for mobile devices must display to mobile users. The Products page for desktop devices must display to desktop users. Storage: The data must be stored in a serialized XML data format. Serialized objects must be schema-independent. Exception handling: Exceptions originating from IIS must display a page with support contact information. Some page links expire, and users who access these links encounter 404 errors. Exceptions must be logged by using the WriteLog method of the Utility class. Browser and device support: The application must support image format conversions from .bmp to .jpeg for mobile devices. The application must support image format conversions from .bmp to .png for desktop devices.
upvoted 2 times
...
AT_TW
5 years, 3 months ago
where is : The application must support image format conversions from .bmp to .png for desktop devices ??
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...