exam questions

Exam 70-486 All Questions

View all questions & answers for the 70-486 exam

Exam 70-486 topic 1 question 30 discussion

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

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) {. . .}
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
Screen is used for computer screens, tablets, smart-phones etc. max-width is the maximum width of the display area, suchas a browser window.
References:
http://www.w3schools.com/cssref/css3_pr_mediaquery.asp

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
zimzimzimma
Highly Voted 4 years, 11 months ago
Answer is D but question is confusing since it says LESS than 500px and D is MAX 500px.
upvoted 5 times
Lt_munchies
4 years, 9 months ago
Up screen width less than 500px therefore the MAX width is 500px
upvoted 6 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 ...