1 Flashcards

1
Q

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.

A
  • Use HTML5 semantic markup elements to enhance the pages.

* Annotate HTML5 content elements with Accessible Rich Internet Application (ARIA) attributes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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.

A

Combine the content files by using ASP.NET MVC bundling.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

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.

A

ViewBag.Title = Resources.MyDictionary.Title;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The test plan requires that tests run against the application's business layer.

A

Unit Test Project

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

The unit tests must test code that consumes sealed classes. You need to create, maintain, and inject dependencies in the unit tests.

A

Shim types

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

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.

A

From the DEBUG menu in Visual Studio 2012, select Exceptions. Enable the Thrown check box for Common Language Runtime Exceptions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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.

A

Use QueryString to store search terms and page index

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

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

A state server

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

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.

A

Implement WebSockets protocol on the client and the server

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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?

A
  • Sql Azure

* Windows Azure session state

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

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

A

Windows

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

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

A

Use the HttpRequest.Unvalidated property to read the unvalidated form value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

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.

A

Aspnet_regiis.exe

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

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)

A
  • 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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

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?

A

if (request.Headers.Contains(“X-Delete”)) { request.Method=new HttpMethod(“DELETE”); } returnbase.sendAsync(request,cancellationToken);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Your team must include a stockticker in the UI that displays the company’s stock price every 15 minutes, and include the capability to do partial saves of base objects as users step through a data entry wizard.You want to use the same approach for both requirements to make it easier to add functionality and maintain it going forward.

A

Use AJAX to make asynchronous calls to the server on a timer for the stock price and to automatically save the base objects as the user navigates through the wizard

17
Q

You are discussing an HttpRequest property that returns the physical file system path that matches the requested URL.

A

The HttpRequest.PhysicalPath property.

18
Q

You are discussing an HttpRequest property that Gets or sets the character set of the entity-body.

A

The ContentEncoding property.

19
Q

Passwords must be stored in the web.config file and must not be readable or in a format that is easily decodable.

A

aspnet_regiis.exe

20
Q

You are preparing to write code that prevents invalid parameters from being distributed to the EditLog action.

A

add MapRoute method

21
Q

You have been given requirements for a dashboard page that will contain summary information from your order processing system in a single display table. However, this summarization needs to be done by combining data requests from the order system, the shipping system, and the accounting system. The dashboard page will be the only place you use this combined data. What is the best way to implement this requirement?

A

ZipArchive Class.

22
Q

You are instructed to make sure that the deletion of audiovisual media is not dependent on browser ability.

A

SendAsync method.

23
Q

majority of the application is dynamic, but some areas can be cached for a long time

A

Donut hole caching

Donut caching