READ Free Dumps For Microsoft- 70-486
Question ID 14738 | You are authoring unit tests.
The unit tests must test code that consumes sealed classes.
You need to create, maintain, and inject dependencies in the unit tests.
Which isolation method should you use?
|
Option A | T4 text templates and code generation
|
Option B | Stub types
|
Option C | Shim types
|
Option D | Hard-coded implementation
|
Correct Answer | C |
Explanation Explanation: http://msdn.microsoft.com/en-us/library/hh549176.aspx Shim types are one of two technologies that the Microsoft Fakes Framework uses to let you easily isolate components under test from the environment. Shims divert calls to specific methods to code that you write as part of your test. Many methods return different results dependent on external conditions, but a shim is under the control of your test and can return consistent results at every call. This makes your tests much easier to write.
Question ID 14739 | 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?
|
Option A | @media screen and (width >= 500px) { }
|
Option B | @media screen and (min-width: 500px) { }
|
Option C | @media screen(min-width: 500px, max-width: 1000px) { }
|
Option D | @media resolution(min-width: 500px) { }
|
Correct Answer | B |
Explanation Explanation: http://www.javascriptkit.com/dhtmltutors/cssmediaqueries.shtml