How should you complete the relevant code?
DRAG DROP
You are developing an ASP.NET MVC application.
You must handle any first chance exceptions that the application throws. The exception handler has the
following requirements:
Catch any first chance exceptions thrown by the default app domain.
Display the name of the app domain that caused the exception.
Display the message for the exception.
You need to implement the exception handler.
How should you complete the relevant code? To answer, drag the appropriate code segment to the correct
location or locations. Each code segments 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.
Select and Place:
Which code segments should you include in Target 1 and …
DRAG DROP
You need to ensure that URLs for log manipulation are mapped to the controller.
You have the following code:
Which code segments should you include in Target 1 and Target 2 to map the URLs? To answer, drag the
appropriate code segments to the correct targets. Each code segment may be used once, more than once, or
not at all. You need to drag the split bar between panes or scroll to view content.
Select and Place:
How should you complete the relevant Razor markup?
HOTSPOT
You develop an ASP.NET MVC application. You are creating a new layout page by using the Razor view
engine.
The layout page has the following requirements:
Render the content of a section named scripts at the bottom of the layout page.
Render the content of a section named featured just above the body of the page.
Render a StyleBundle named ~/Content/css.
You need to implement the layout page.
How should you complete the relevant Razor markup? To answer, select the appropriate Razor markup from
each list in the answer area.
Hot Area:
Which markup segments should you include in Target 1, T…
DRAG DROP
You are developing an ASP.NET MVC web application.
You need to create a form that can be used to add new products to the web application.
You have the following markup:
Which markup segments should you include in Target 1, Target 2, Target 3 and Target 4 to complete the
markup? To answer, drag the appropriate markup segments to the correct targets. Each markup segment 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.
Select and Place:
Which two actions should you perform?
You are developing an ASP.NET MVC application. Devices that use many different browsers will use the
application.
You have the following requirements:
Content must display correctly when a device is in landscape or portrait orientation.
Content must not scale when the device orientation changes.
Content must be displayed by using the maximum available screen space.
The application must render properly in Internet Explorer 8 or later versions.
You need to configure the application.
Which two actions should you perform? Each correct answer presents part of the solution.
You need to design the application to meet the requirem…
DRAG DROP
You are designed a hybrid application that runs across a Microsoft Azure data center and your company’s onpremise enterprise environment.
You have the following requirements:
Windows Communication Foundation (WCF) services that reside within the corporate enterprise network
must be securely exposed to the public cloud.
A firewall connection and intrusive changes to the corporate network infrastructure are not allowed.
You need to design the application to meet the requirements.How should you design the application? To answer, drag the appropriate item to the correct location or
locations. 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.
Select and Place:
How should you complete the relevant code segment?
DRAG DROP
You develop an ASP.NET MVC application. You plan to implement ASP.NET SignalR for real-time push
notifications. The application includes the following class:
You need to display the message.
How should you complete the relevant code segment? To answer, drag the appropriate code segment to the
correct location or locations. Each code segment 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.
Select and Place:
Which three steps should you perform?
You create an ASP.NET MVC application. You host the application by using the Open Web Interface for .NET
(OWIN). You run the following command by using the NuGet Package Manager console:
install-package Microsoft.AspNet.SignalR
You plan to implement real-time push notifications from the server using ASP.NET SignalR.
You need to complete the ASP.NET SignalR implementation.
Which three steps should you perform? Each correct answer presents part of the solution.
How should you complete the relevant code?
HOTSPOT
You are developing an ASP.NET MVC application to display product information. The application has two
views. The first view displays a list of product names. When you select a product name, the second view shows
detailed information for the product that is selected. The product detail view receives a query string value that
contains as identifier for the product that is selected.
The product controller for the application has the following requirements:
The product list and product details must use output caching.
The list of products must be cached daily.
The product details view must cache data for one hour, based on the product that is selected.
You need to implement the product controller.
How should you complete the relevant code? To answer, select the appropriate code from each list in the
answer area.
Hot Area:
You need to evaluate the unit test results
HOTSPOT
You are building an ASP.NET application. You develop the following unit test code. Line numbers are included
for reference only.
01 [TestClass]
02 public class UnitTest1
03 {
04 protected string _name;
05 protected float _expenses;
06 protected float _income;
07 protected float _payment;
08 protected float _balance;
09 public void AddCustomer(string name, float income, float payment, float balance)
10 {
11 _name = name;
12 _expenses = expenses;
13 _income = income;
14 _payment = payment;
15 _balance = balance;
16 CheckName();
17 DebRatio();
18 CheckBalance();
19 }
20 [TestMethod]
21 public void CheckName()
22 {
23 Assert.IsNotNull(_name, “CheckName failed unit test”);
24 }
25 [TestMethod]
26 public void DebRatio()
27 {
28 Assert.AreSame(_income, _payment, “DebRatio failed unit test”);
29 }
30 [TestMethod]
31 public void CheckBalance()
32 {
33 Assert.IsTrue(_balance >= 0.0f, Check balance failed unit test.”);
34 }
35}
You run the following line of code:
AddCustomer(“Contoso”, 0, 100, 100, -1);
You need to evaluate the unit test results. For each of the following statements, select Yes if the statement is
true. Otherwise, select No.
Hot Area: