PrepAway - Latest Free Exam Questions & Answers

Tag: Exam 70-486 (update July 13th, 2017)

Exam 70-486: Developing ASP.NET MVC 4 Web Applications (update July 13th, 2017)

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.

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:

Which Visual Studio Unit Test project templates should …

DRAG DROP
You are developing an ASP.NET MVC application.
You need to choose the appropriate Visual Studio templates to use for each test goal.
Which Visual Studio Unit Test project templates should you use? To answer, drag the appropriate Unit Test
project template to the correct test goal or test goals. Each project template 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:

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:

Which five actions should you perform in sequence?

DRAG DROP
You are building an ASP.NET application for a purchasing system.
The application has a method named CalculateBalance in the Purchasing class.
You need to create a unit test for the CalculateBalance method.
Which five actions should you perform in sequence? To answer, move the appropriate actions from the list of
actions to the answer area and arrange them in the correct order.
Select and Place:

Which code segment should you use?

You are developing an ASP.NET MVC application.
The application has a contact view includes a form for editing the displayed contact.
You need to save the Contact object model when the form is posted back to the EditContact method using a
POST method request.
Which code segment should you use? Each correct answer presents a complete solution. Choose all that
apply.

You need to use the correct authentication data in the …

DRAG DROP
You are developing an ASP.NET MVC application. You plan to use OAuth to authenticate users to the
application.
You need to use the correct authentication data in the application.
What should you do? To answer, drag the appropriate data element to the correct location or locations. Each
data element 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:


Page 2 of 1512345...10...Last »