[Free] Get all latest Microsoft 70-515 Actual Tests 201-210

Ensurepass

QUESTION 201

You work as an ASP.NET Web Application Developer for SomeCompany.

 

The company uses Visual Studio .NET 2010 as its application development platform.

 

You create an ASP.NET MVC 2 Web application using .NET Framework 4.0.

 

You implement a single project area in the MVC 2 Web application.

 

In the Areas folder, you add a subfolder named MyTest.

 

You add the following files to the appropriate sub-folders:

 

MyController. cs

 

MyHome.aspx

 

You register a route of the area, setting the route name to MyTest_default and the area name to test.

 

You create a view named MyViews.aspx that is outside the test area.

 

You need to add a link to MyViews.aspx that points to MyHome.aspx.

 

Which of the following code segments will you use?

 

A.

<%= Html.ActionLink(“MyTest”, “MyHome”, new {area = “test”}, null)%>

B.

<%= Html.RouteLink(“MyHome”, “MyTest”, new {area = “test”}, null)%>

C.

<%= Html.RouteLink(“MyTest”, “MyHome”, “MyTest”, new {area = “test”}, null)%>

D.

<%= Html.ActionLink(“MyTest”, “MyHome”, “MyTest”, new {area = “test”}, null)%>

 

Correct Answer: D

Explanation:

The ActionLink method renders an element that links to an action method. The RouteLink method renders an element that links to a URL, which can resolve to an action method, a file, a folder, or some other resource.

LinkExtensions.ActionLink Method

(http://msdn.microsoft.com/en-

us/library/system.web.mvc.html.linkextensions.actionlink.aspx) LinkExtensions.RouteLink Method

(http://msdn.microsoft.com/en-

us/library/system.web.mvc.html.linkextensions.routelink.aspx)

 

 

QUESTION 202

You work as an ASP.NET Web Application Developer for SomeCompany.

 

The company uses Visual Studio .NET 2010 as its application development platform.

 

You are creating an ASP.NET Web application using .NET Framework 4.0.

 

The Web application will be accessed by international audience.

 

The Web application holds global and local resources for display elements that must be translated into the language that is preferred by the user.

 

You are required to ensure that a Label control named CompanyLabel displays text in the user’s preferred language from the global resource file.

 

Which control markup will you use?

 

A.

<asp:Label lD=”CompanyLabel” runat=”server” Text=”<%$ Resources:WebResources, Text %>” />

B.

<asp:Label lD=”CompanyLabel” runat=”server” Text=”<% Resources:WebResources % >” />

C.

<asp:Label lD=”CompanyLabel” runat=”server” Text=”<%$ Resources:WebResources, CompanyLabelText %>” />

D.

<asp:Label lD=”CompanyLabel” runat=”server” Text=”CompanyLabel” meta:

resourcekey=”CompanyLabel.Text” />

 

Correct Answer: C

Explanation:

CHAPTER 6 Globalization and Accessibility

Lesson 1: Configuring Globalization and Localization Attaching Controls and Resources Explicitly (page 298)

 

 

QUESTION 203

You work as an ASP.NET Web Application Developer for SomeCompany.

 

The company uses Visual Studio .NET 2010 as its application development platform.

 

You are creating an ASP.NET Web application using .NET Framework 4.0.

 

The Web application makes use of SqlMembershipProvider.

 

You need to test the application locally and then deploy it to numerous production servers.

 

You must ensure that each and every deployed application accesses the identical production database in a Microsoft SQL Server.

 

What will you do? (Each correct answer represents a part of the solution. Choose two.)

 

A.

Execute the Aspnet_regsql.exe tool to create the database on the correct Microsoft SQL Server.

B.

Run the Aspnet_compiler.exe tool to create the database on the correct Microsoft SQL Server.

C.

Alter the Web.Release.config file to transform the connection string to provide the names of the database and production server.

D.

Alter the Web.Debug.config file to transform the connection string to provide the names of the database and production server.

E.

Alter the connection string in the Web.config file to provide the names of the production server.

 

Correct Answer: AE

Explanation:

CHAPTER 8 Debugging and Deploying

Lesson 3: Deploying Websites

Publishing Web Applications – Publishing Web Applications (page 420)

Web.config Transformation Syntax for Web Application Project Deployment (http://msdn.microsoft.com/en-us/library/dd465326.aspx)

 

 

QUESTION 204

You work as an ASP.NET Web Application Developer for SomeCompany.

 

The company uses Visual Studio .NET 2010 as its application development platform.

 

You are creating an ASP.NET Web application using .NET Framework 4.0.

 

The application will provide information about products manufactured by the company.

 

The company has a branch office in Saudi Arabia.

 

The Sales department employees of the branch office in Saudi Arabia will use the application.

 

You are required to accomplish the following tasks:

 

The application displays contents in the correct format for the employees of the Saudi Arabia office.

 

Each page in the application is displayed in the right-to-left format.

 

What will you do to accomplish these tasks?

 

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

 

A.

In the Web.config file of the Web application, set the culture attribute of the <globalization> element to “ar-SA”.

B.

In the Web.config file of the Web application, set the uiCulture attribute to “ar-SA”.

C.

In the Web.config file of the Web application, set the culture attribute to “SA”.

D.

In the Web.config file of the Web application, set the culture attribute of the <globalization> element to “ar”.

E.

Set the HTML dir attribute for the <body> element of each page to “rfl”.

 

Correct Answer: AE

Explanation:

CHAPTER 6 Globalization and Accessibility

Lesson 1: Configuring Globalization and Localization

 

 

QUESTION 205

You work as an ASP.NET Web Application Developer for SomeCompany.

 

The company uses Visual Studio .NET 2010 as its application development platform.

 

You are creating an ASP.NET MVC 2 Web application using .NET Framework 4.0.

 

You add a controller named MVC2Controller to the MVC 2 application.

 

You are required to modify the MVC 2 application to manage the URL path /company/info.

 

What will you do? (Each correct answer represents a part of the solution. Choose two.)

 

A.

Right-dick the Views folder, and select View from the Add sub-menu to create the view for the action.

B.

Add the following method to MVC2Controller:

public ActionResult InfoController()

{

return View();

}

C.

Right-dick within the action method in MVC2Controller, and select Add View to create a view for the action.

D.

Add the following method to MVC2Controller:

public ActionResult Info()

{

return View();

}

E.

Add the following method to MVC2Controller:

public ActionResult Company_Info()

{

return View();

}

 

Correct Answer: CD

 

 

QUESTION 206

You work as an ASP.NET Web Application Developer for SomeCompany.

 

The company uses Visual Studio .NET 2010 as its application development platform.

 

You create an ASP.NET Web site using .NET Framework 4.0.

 

Only registered users of the company will be able to use the application.

 

The application holds a page named UserAccount.aspx that enables new users to register them to the registered users` list of the company.

 

The UserAccount page hold numerous TextBox controls that accept users personal details, such as user name, password, home address, zipcode, phone number, etc.

 

One of the TextBox controls on the page is named ZipCode in which a user enters a zip code.

 

You must ensure that when a user submits the UserAccount page, ZipCode must contain five numeric digits.

 

What will you do to accomplish this?

 

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

 

A.

Use RangeValidator.

B.

Use RegularExpressionValidator

C.

Use RequiredValidator

D.

Use CompareValidator

E.

Use RequiredFieldValidator

 

Correct Answer: BE

 

 

QUESTION 207

You work as an ASP.NET Web Application Developer for SomeCompany.

 

The company uses Visual Studio .NET 2010 as its application development platform.

 

You are creating an ASP.NET Web application using .NET Framework 4.0.

 

The application holds a Web page named MyHome.aspx.

 

You are creating a button with a rolloverimage on MyHome.aspx.

 

However, when mouse hovered over the button image, the rolloverimage is retrieved from the server in a separate request.

 

You need to use an improved rollover button in which the button`s rolloverimage is already downloaded and stored in the browser’s cache, as a result when you hover over the button, it is instantly displayed.

 

What will you do to accomplish this? (Each correct answer represents a part of the solution. Choose two.)

 

A.

Use JavaScript Object Notation.

B.

Use the RegisterClientScriptBlock method.

C.

Use the RegisterClientScriptlnclude method.

D.

Build a JavaScript function.

E.

Use the RegisterClientScriptResource method.

 

Correct Answer: BD

 

 

QUESTION 208

You work as an ASP.NET Web Application Developer for SomeCompany.

 

The company uses Visual Studio .NET 2010 as its application development platform.

 

You create an ASP.NET Web application using .NET Framework 4.0.

 

You are planning to deploy the ASP.NET Web application to a production server by publishing the Web application in Release configuration.

 

You must ensure that the connection string value in the Web.config file is updated to the connection string value of the production server during publishing.

 

What will you do?

 

A.

Add the following code to the Web.config file.

<connectionStrings>

<add name=”DataBD” connectionString=”Server=ProductionSewer; Database=ProductionDB;Integrated Security=SSPI;” xdt:Transform=”Replace” xdt:

Locator=”Match(name)” />

</connectionStrings>

B.

Add the following code to the Web.release.config file.

<connectionStrings>

<add name=”DataBD” connectionString=”Server=ProductionSewer; Database=ProductionDB;Integrated Security=SSPI;” xdt:Transform=”Replace” xdt:

Locator=”Match(name)” />

</connectionStrings>

C.

Add the following code to the Web.config file:

<connectionStrings>

<add name=”DataBD” connectionString=”Server=ProductionSewer; Database=ProductionDB;Integrated Security=SSPI;” xdt:Transform=”Replace” xdt:

Locator=”XPath(name)” />

</connectionStrings>

D.

Add the following code to the Web.release.config file.

<connectionStrings>

<add name=”DataBD” connectionString=”Server=ProductionSewer; Database=ProductionDB;Integrated Security=SSPI;” xdt:Transform=”Replace” xdt:

Locator=”XPath(name)” />

</connectionStrings>

 

Correct Answer: B

 

 

QUESTION 209

Which property of the Label control getssets the identifer for a server control that the Label control is associated with?

 

A.

ClientID

B.

ID

C.

AssociatedControlID

D.

ControlID

 

Correct Answer: C

 

 

QUESTION 210

Which property of the ListView class is used to getset the name of the data field whose value exclusively identifes every data row of a ListView when the ClientIDMode property is set to Predictable?

 

A.

LoadViewStateByID

B.

UniqueID

C.

ClientIDMode

D.

ClientIDRowSuffix

 

Correct Answer: D

 

Instant Access to Download Testing Software & PDF File for Microsoft 70-515 Real Exam

Instant Access to Try Microsoft 70-515 Free Demo

This entry was posted in 70-515 Actual Tests and tagged , , , , , . Bookmark the permalink.