It is more faster and easier to pass the Microsoft 70-486 exam by using Real Microsoft Developing ASP.NET MVC 4 Web Applications questuins and answers. Immediate access to the Up to the immediate present 70-486 Exam and find the same core area 70-486 questions with professionally verified answers, then PASS your exam with a high score now.
Q31. - (Topic 4)
You need to enable client-side validation for an ASP.NET MVC application.
Which three actions should you perform? Each correct answer presents part of the solution.
A. Attach a custom validation attribute to the model properties that the view uses.
B. Reference the jquery, jquery.validate and jquery.validate.unobtrusive script files in the view.
C. Open the web.config file at the project root, and set the values of the ClientValidationEnabled and UnobtrusiveJavaScriptEnabled keys to True.
D. For each form element, use the Validator.element() method to validate each item.
E. Add data annotations to the model properties that the view uses.
Answer: B,C,E
Explanation: B: . The validation can be implemented using jQuery and jQuery validation plug-in (jquery.validate.min.js and jquery.validate.unobtrusive.min.js).
C: When you are developing an MVC application in Visual Studio 2012 then the client-side
becomes enabled by default, but you can easily enable or disable the writing of the
following app setting code snippet in the web.config file.
<configuration>
<appSettings>
<add key="ClientValidationEnabled" value="true" />
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
</appSettings>
</configuration>
E: The jQuery validation plug-in takes advantage of the Data Annotation attributes defined in the model, which means that you need to do very little to start using it.
Reference: ASP.NET MVC Client Side Validation
http://www.codeproject.com/Articles/718004/ASP-NET-MVC-Client-Side-Validation
Q32. - (Topic 1)
You need to make the "Distance" header of the table bold in the Views/RunLog/GetLog.cshtml view.
Which code segment should you use?
A. table>tr{ font-weight: bold; }
B. table>th:last-child{ font-weight: bold; }
C. table+first-child{ font-weight: bold; }
D. table>tr>th:nth-child (2) { font-weight: bold; }
Answer: D
Q33. Topic 1, Olympic Marathon
Background
You are developing an ASP.NET MVC application in Visual Studio 2012 that will be used by Olympic marathon runners to log data about training runs.
Business Requirements
The application stores date, distance, and duration information about a user's training runs. The user can view, insert, edit, and delete records.
The application must be optimized for accessibility.
All times must be displayed in the user's local time.
Technical Requirements
Data Access:
Database access is handled by a public class named
RunnerLog.DataAccess.RunnerLogDb.
All data retrieval must be done by HTTP GET and all data updates must be done by HTTP
POST.
Layout:
All pages in the application use a master layout file named \Views\Shared\_Layout.cshtml.
Models:
The application uses the \Models\LogModel.cs model.
Views:
All views in the application use the Razor view engine.
Four views located in \Views\RunLog are named: _CalculatePace.cshtml EditLog.cshtml GetLog.cshtml InsertLog.cshtml
The application also contains a \Views\Home\Index.cshtml view.
Controllers:
The application contains a \Controllers\RunLogController.cs controller.
Images:
A stopwatch.png image is located in the \Images folder.
Videos:
A map of a runner's path is available when a user views a run log. The map is implemented
as an Adobe Flash application and video. The browser should display the video natively if possible, using H264, Ogg, or WebM formats, in that order. If the video cannot be displayed, then the Flash application should be used.
Security:
You have the following security requirements: The application is configured to use forms authentication. Users must be logged on to insert runner data. Users must be members of the Admin role to edit or delete runner data. There are no security requirements for viewing runner data. You need to protect the application against cross-site request forgery. Passwords are hashed by using the SHA1 algorithm.
RunnerLog.Providers.RunLogRoleProvider.cs contains a custom role provider.
Relevant portions of the application files follow. (Line numbers are included for reference only.)
Application Structure
- (Topic 1)
You need to ensure that the application uses RunLogRoleProvider custom role provider.
How should you modify the web.config file? (To answer, drag the appropriate line of code to the correct location or locations. Each line of code 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.)
Answer:
Q34. HOTSPOT - (Topic 1)
You need to implement the map of the runners' paths.
How should you build the video viewer? (To answer, select the appropriate options in the answer area.)
Answer:
Q35. DRAG DROP - (Topic 4)
You are developing an ASP.NET MVC application. The application has a view that displays a list of orders in a multi-select list box.
You need to enable users to select multiple orders and submit them for processing.
What should you do? (To answer, drag the appropriate words to the correct targets. Each word 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.)
Answer:
Q36. - (Topic 4)
You are developing an ASP.NET MVC application that supports multiple cultures and multiple languages. The application will be sold to international customers.
The ASP.NET MVC application must store localized content in satellite assemblies for multiple languages.
You need to generate the satellite assemblies during an automated build.
Which tool should you use?
A. Gacutil.exe
B. Al.exe
C. Ildasm.exe
D. nasm.exe
Answer: B
Explanation: Use the Assembly Linker (Al.exe) to compile .resources files into satellite assemblies. Al.exe creates an assembly from the .resources files that you specify. By definition, satellite assemblies can only contain resources. They cannot contain any executable code.
The following Al.exe command creates a satellite assembly for the application MyApp from the file strings.de.resources.
al /t:lib /embed:strings.de.resources /culture:de /out:MyApp.resources.dll
Q37. - (Topic 4)
You are developing an ASP.NET MVC application that will be deployed on a web farm.
Passwords must be stored in the web.config file and must not be readable or in a format
that is easily decodable.
You need to encrypt the passwords that are stored in the web.config file.
Which command-line tool should you use?
A. Aspnet_regiis.exe
B. Aspnet_regbrowsers.exe
C. Aspnet_setreg.exe
D. Aspnet_compiler.exe
Answer: A
Q38. - (Topic 4)
You are designing a distributed banking application that handles multiple customers. A user may log on to the site to perform activities such as checking balances, performing transactions, and other activities that must be done securely.
The application must store secure information that is specific to an individual user. The data must be automatically and securely purged when the user logs off.
You need to save transient information in a secure data store.
Which data store should you use?
A. NET session state
B. NET profile properties
C. NET application state
D. Shared database
Answer: A
Q39. - (Topic 4)
You are developing an ASP.NET MVC web application in Visual Studio 2012. The application requires several thousand content files. All content is hosted on the same IIS instance as the application.
You detect performance issues when the application starts.
You need to resolve the performance issues.
What should you do?
A. Enable compression in IIS.
B. Move the content to a second server.
C. Combine the content files by using ASP.NET MVC bundling.
D. Implement HTTP caching in IIS.
Answer: C
Q40. HOTSPOT - (Topic 3)
The designer for the website gave you the following image as the design for the page.
The normal color for the tab is *2da4c2, and the color when the mouse is over the tab is #ffd800.
The HTML that implements the navigation tab is as follows.
You need to implement the design.
What should you do? (To answer, select the appropriate options in the answer area.)
Answer: