Latest MCPD 70-519 Dumps Real Exam Download 11-20

Ensurepass

QUESTION 11

You need to design a solution for implementing holiday-specific site changes. Which approach should you recommend?

 

A. Create a single master page, and change its images and styles dynamically in the code-behind file.

B. Create one master page for each holiday. In each master page, reference the styles and images for the specific holiday.

C. For each holiday, create a theme that contains the related images and styles. Include a skin file, and reference the images within the master page with a SkinID.

D. For each holiday, create a theme that contains the related images and styles. Include a skin file, and reference all images within the Web application with a SkinID.

 

Correct Answer: D

Explanation/Reference:

Like style sheets, themes centralize formatting settings. However, although style sheets rely on the client browser to download and apply the settings, ASP.NET processes themes on the server by setting control properties to specified defaults prior to rendering. Themes are stored in the App_Themes<theme_name> folder and consist of one or more skin files. Each skin file contains a list of controls with default property settings. Skin file definitions closely resemble controls in an ASPX file. However, skin files never specify an ID property.

 

 

QUESTION 12

You need to design a solution for accessing the shopping cart controls by using JavaScript. Which configuration should you recommend?

 

A. Use <%= control.ID %>.

B. Use <%= control.ClientID %>.

C. Use ClientIDMode=”AutoID”.

D. Use ClientIDMode=”Predictable”.

 

Correct Answer: D

Explanation/Reference:Predictable -This algorithm is used for controls that are in data-bound controls. The ClientID value is generated by concatenating the ClientID value of the parent naming container with the ID value of the control. If the control is a data-bound control that generates multiple rows, the value of the data field specified in the ClientIDRowSuffix property is added at the end. For the GridView control, multiple data fields can be specified. If the ClientIDRowSuffix property is blank, a sequential number is added at the end instead of a data field value. Each segment is separated by an underscore character (_).

http://msdn.microsoft.com/en-us/library/system.web.ui.clientidmode.aspx

 

 

clip_image002[4]

 

QUESTION 14

You are designing an ASP.NET Web application for display on desktop computers and on mobile devices. You have the following requirements:

-Present a full-featured interface to users of desktop computers that includes many interaction options and graphical buttons.

-Present a simple interface to users of mobile devices that does not include bandwidth-intensive elements. You need to design the Web application to meet the requirements. Which two approaches should you recommend? (Each correct answer presents part of the solution. Choose two.)

 

A. Create two separate skins for desktop and mobile user interfaces.

B. Create two separate themes for desktop and mobile user interfaces.

C. In the PreRender method of the Web applications master page, test Request.Browser.MobileDeviceModel and switch to the appropriate interface.

D. Create a System.Web.UI.Page subclass that all Web application pages inherit from. In the Page_PreInit method, test Request.Browser.IsMobileDevice and switch to the appropriate interface.

 

Correct Answer: BD

Explanation/Reference:

 

 

QUESTION 15

You are designing an ASP.NET Web application for content management. You have the following requirements:

-Support multiple browsers.

Display a specific interface for browsers that have display dimensions of less than 640 x 480 pixels. You need to design a solution for identifying the display dimensions of the requesting browser. Which approach should you recommend?

 

A. Use CurrentUICulture.

B. Use the HttpUtility class.

C. Use the HttpWorkerRequest class.

D. Use the HttpBrowserCapabilities class.

 

Correct Answer: D

Explanation/Reference:

HttpBrowserCapabilities Enables the server to gather information on the capabilities of the browser that is running on the client.

http://msdn.microsoft.com/en-us/library/system.web.httpbrowsercapabilities.aspx

HttpWorkerRequest This abstract class defines the base worker methods and enumerations used by ASP.NET managed code to process requests.

 

 

QUESTION 16

You are designing an ASP.NET Web Forms application. You have the following requirements:

-Make use of exclusive features in a newly released Web browser.

-Do not change existing code files. You need to design the application to meet the requirements. Which approach should you recommend?

 

A. Use a .browser file.

B. Use the HttpWorkerRequest class.

C. Use the Web application s master page.

D. Parse the UserAgent string in Page_Load.

 

Correct Answer: A

Explanation/Reference:

To determine the capabilities of a client browser, ASP.NET compares identifying information provided by the browser to a series of .browser files. At runtime, you can examine the browser capabilities to customize the page for that specific browser type.

 

 

QUESTION 17

You are designing an ASP.NET Web application for content management. You have the following requirements:

-Support multiple languages.

-Support dynamic changes to site content.

-Provide the ability to add content to the site without making changes to files within the application directory. You need to recommend the application s source for retrieving content. Which source should you recommend?

 

A. a database based on CurrentUICulture

B. a master page based on CurrentUICulture

C. local resources based on CurrentCulture

D. global resources based on CurrentCulture

 

Correct Answer: A

Explanation/Reference:

to allow last one option only database need to use

 

 

QUESTION 18

You need to design a solution that supports the end user display requirements for data and graphics.

Which two actions should you recommend?

(Each correct answer presents part of the solution. Choose two.)

 

A. Use a language-specific master page.

B. Replicate each page once for each supported language.

C. Create a local resource file for each page and for each language.

D. Populate the database with data in each language, and retrieve the data in the user s language.

 

Correct Answer: CD

Explanation/Reference:

Resource and database can be used for implemeent multilanguage

 

 

QUESTION 19

You need to incorporate a data access layer to meet the requirements. Which solution should you recommend?

 

A. an Entity Data Model created by using the Entity Framework within the Web project

B. a class that is stored in the app_code folder of the Web project, uses ADO.NET, and returns DataSets

C. a separate data access project that includes an Entity Data Model created by using the Entity Framework

D. a separate data access project that queries the database by using ADO.NET and returns DataSets

 

Correct Answer: CExplanation/Reference:

 

 

QUESTION 20

You are designing an ASP.NET Web application.

The application must provide a data access method that supports HTTP, MTOM, SOAP, and TCP.

You need to ensure that customers can integrate their applications with the data sources and business

rules for your Web application.

Which data access technology or technologies should you recommend?

 

A. Entity Framework

B. Windows Communication Foundation

C. ADO.NET DataSets and ASP.NET Web Services

D. ADO.NET DataTables and ASP.NET Web Services

 

Correct Answer: B

Explanation/Reference:

only WC supported by binding HTTP, MTOM, SOAP, and TCP.

 

 

Download Latest MCPD 70-519 Real Free Tests , help you to pass exam 100%.