1 Flashcards
You need to design the interface to make the content of the web page viewable in all types of browsers, including voice recognition software, screen readers, and reading pens.
- Use HTML5 semantic markup elements to enhance the pages.
* Annotate HTML5 content elements with Accessible Rich Internet Application (ARIA) attributes
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.
Combine the content files by using ASP.NET MVC bundling.
The application supports multiple cultures. The application contains three resource files in the Resources directory: • My Dictionary.resx • MyDictionary.es.resx • MyDictionary.fr.resx
Each file contains a public resource named Title with localized translation. The application is configured to set the culture based on the client browser settings. The application contains a controller with the action defined in the following code segment. (Line numbers are included for reference only.)
You need to set ViewBag.Title to the localized title contained in the resource files.
ViewBag.Title = Resources.MyDictionary.Title;
The test plan requires that tests run against the application's business layer.
Unit Test Project
The unit tests must test code that consumes sealed classes. You need to create, maintain, and inject dependencies in the unit tests.
Shim types
You are developing an ASP.NET MVC application by using Visual Studio 2012. The application throws and handles exceptions when it runs. You need to examine the state of the application when exceptions are thrown.
From the DEBUG menu in Visual Studio 2012, select Exceptions. Enable the Thrown check box for Common Language Runtime Exceptions.
A user can search the website for news articles. You must track the page number that the user is viewing in search results. You need to program the location for storing state information about the user’s search.
Use QueryString to store search terms and page index
The application is deployed in a web farm and is accessed by many users. The application must handle web server failures gracefully. The servers in the farm must share the state information. You need to persist the application state during the session.
A state server
You are developing an ASP.NET MVC application that displays stock market information. The stock market information updates frequently and must be displayed in real-time. You need to eliminate unnecessary header data, minimize latency, and transmit data over a full-duplex connection.
Implement WebSockets protocol on the client and the server
You are designing a distributed application that runs on the Windows Azure platform. The application must store a small amount of insecure global information that does not change frequently. You need to configure the application to meet the requirements. Which server-side state management option should you use?
- Sql Azure
* Windows Azure session state
You are developing an ASP.NET MVC application. You need to authenticate clients by using NT LAN Manager (NTLM). Which authentication method should you implement
Windows
You are developing an ASP.NET MVC application. The application must allow users to enter JavaScript in a feedback text box only. You need to disable request validation
Use the HttpRequest.Unvalidated property to read the unvalidated form value
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.
Aspnet_regiis.exe
you are designing HTML5 website.you need to design interface to ake content of webpage viewable in all Types of browsers , including voice recognition software,screen readers, and reading pens.What should you do?(Each correct answer presents commplete solution.Choose all that apply)
- Annotate HTML5 content elements with Accessible Rich Internet Application (ARIA) attributes
- Ensure that HTML5 content elements have valid and descriptive names
- Use HTML5 seantic arkup element s to enhance psges
- Convert HTML foors to XForms
you need to ensure that all customers can delete videos regardless of their browser capability. Which code segment should you use a s body of the SendAsync Method in DeleteHandler class?
if (request.Headers.Contains(“X-Delete”)) { request.Method=new HttpMethod(“DELETE”); } returnbase.sendAsync(request,cancellationToken);