Microsoft 70-486 Developing ASP.NET MVC 4 Web Applications Online Training
Microsoft 70-486 Online Training
The questions for 70-486 were last updated at Dec 20,2024.
- Exam Code: 70-486
- Exam Name: Developing ASP.NET MVC 4 Web Applications
- Certification Provider: Microsoft
- Latest update: Dec 20,2024
An advertising campaign was recently launched. Some of the ads contain a link to products that no longer exist or have IDs that have changed.
You need to ensure that all product links display a product.
Which code segment should you use to configure the route?
- A . Option A
- B . Option B
- C . Option C
- D . Option D
You need to modify the application to meet the productId requirement.
What should you do?
- A . Modify the RegisterGlobalFilters method of the Global.asax.cs file as follows.
Contract.Assume<ArgumentException>(productId != 0); - B . Modify the GetDealPrice method of ProductController as follows.
Contract.Requires<ArgumentException>(productId > 0); - C . Modify the RegisterGlobalFilters method of the Global.asax.cs file as follows.
Contract.Requires<ArgumentException>(productId > 0); - D . Modify the GetDealPrice method of ProductController as follows.
Contract.Assume<ArgumentException>(productId > 0);
You need to implement the business requirements for managing customer data.
What should you do? (Each correct answer presents part of the solution. Choose all that apply.)
- A . Add a class named Customer-Controller to the Controllers folder. Then add a method named Edit to the class.
- B . Create a new controller named Administration in the Controllers folder. Add an action named EditCustomer to the controller.
- C . Add a folder named Customer to the Views folder. Then create a view inside this folder named Edit.aspx.
- D . Create a new folder named EditCustomer to the Views folder. In the new folder, create a new file named Administration.aspx.
When users attempt to retrieve a product from the product page, a run-time exception occurs if the product does not exist.
You need to route the exception to the CustomException.aspx page.
Which method should you add to MvcApplication?
- A . Option A
- B . Option B
- C . Option C
- D . Option D
You updated the web.config file with the HTTP run-time value required to display an alternative version of the site.
You need to ensure that the correct page displays to the users.
Which code segment should you use to update the controller?
- A . If (Request.IsTabletDevice)
- B . If (Request.Browser.IsBrowser("Mobile"))
- C . If (Request.UserAgent["Tablet"])
- D . If (Request.Browser.IsMobileDevice)
You need to implement client-side animations according to the business requirements.
Which line of code should you use? (Each correct answer presents a complete solution. Choose all that apply.)
- A . $("body h1:nth-child(1)").fadeIn(1000);
- B . $("body h1:nth-child(1)")-fadeOut(1000);
- C . $("body h2:nth-child(1)").animate({ opacity: 0 });
- D . $("body h1:nth-child(1)").animate({ opacity: 1 });
You need to implement client-side animations according to the business requirements.
Which line of code should you use? (Each correct answer presents a complete solution. Choose all that apply.)
- A . $ ("h1: first") .animate ({ opacity: 0 });
- B . $("h1:first").fadeIn(1000);
- C . $("h1:first").animate({ opacity: 1 });
- D . $("h1:first").fadeOut(1000);
You need to configure session storage in the web.config file to meet the technical requirements for scalability.
Which SessionState mode should you use? (Each correct answer presents a complete solution. Choose all that apply.)
- A . StateServer
- B . InProc
- C . AutoDetect
- D . SqlServer
You need to update the routes to ensure that a product is always displayed on the product page.
Which code segment should you use?
- A . Option A
- B . Option B
- C . Option C
- D . Option D
The GetDealPrice method must be called by using Ajax.
You need to get the price of a product by using the GetDealPrice method of the ProductController.
Which code segment should you use? (Each correct answer presents a complete solution. Choose all that apply.)
- A . Option A
- B . Option B
- C . Option C
- D . Option D