Latest 70-515 Real Exam Download 71-80

Ensurepass

QUESTION 71

You create a Web page that contains the span shown in the following line of code.

<span id="span1">Text</span>

You need replace the contents of the span with HTML that you download from a URL specified by a global variable named localURL.

Which code segment should you use?

A. $.ajax({

type: "GET",

url: localURL,

dataType: "jsonp",

success: function(htmlText) {

$("#span1").text(htmlText);

}

});

B. $.ajax(localURL, {}, function(htmlText) {

$("#span1").html(htmlText);

},

"html"

);

C. $.ajax({

type: "GET",

url: localURL,

dataType: "html",

success: function(htmlText) {

$("#span1").innerHTML = htmlText;

}

});

D. $.ajax({

type: "GET",

url: localURL,

success: function(htmlText) {

$("#span1").html(htmlText);

}

});

Answer: D


QUESTION 72

A Web service returns a list of system users in the following format.

<xml version="1.0" >

<users>

<user id="first">

<name>Name of first user</name>

<email>first@contoso.com</email>

</user>

<user id="second">

<name>Name of second user</name>

<email>first@contoso.com</email>

</user>

</users>

You need to populate a drop-down menu with the IDs and names of the users from the Web service, in the order provided by the service.

Which code segment should you use?

A. $.ajax({

type: "GET",

url: serviceURL,

success: function(xml) {

$.each($(xml), function(i, item) {

$("<option>").attr("value", id).text(tx).appendTo("#dropdown");

}

});

});

B. $.ajax({

type: "GET",

url: serviceURL,

success: function(xml) {

$(xml).find("user").each(function() {

var id = $(this).id;

var tx = $(this).name.text

$("<option>").attr("value", id).text(tx).appendTo("#dropdown");

}

});

});

C. $.ajax({

type: "GET",

url: serviceURL,

success: function(xml) {

$(xml).find("user").each(function() {

var id = $(this).attr("id");

var tx = $(this).find("name").text();

$("<option>").attr("value", id).text(tx).appendTo("#dropdown");

}

});

});

D. $.ajax({

type: "GET",

url: serviceURL,

success: function(xml) {

xml.find("user").each(function(node) {

var id = $(node).attr("id");

var tx = $(node).find("name").text();

$("<option>").attr("value", id).text(tx).appendTo("#dropdown");

}

});

});

Answer: C


QUESTION 73

You are creating an ASP.NET Web site.

The site contains pages that are available to anonymous users.

The site also contains a page named Premium.aspx that provides premium content to only members of a group named Subscribers.

You need to modify the web.config file to ensure that Premium.aspx can be accessed by only members of the Subscribers group.

Which configuration should you use?

A. <location path="Premium.aspx">

<system.web>

<authorization>

<allow users="Subscribers"/>

<deny users="*"/>

</authorization>

</system.web>

</location>

B. <location path="Premium.aspx">

<system.web>

<authorization>

<allow roles="Subscribers"/>

<deny users="*"/>

</authorization>

</system.web>

</location>

C. <location path="Premium.aspx">

<system.web>

<authorization>

<allow roles="Subscribers"/>

<deny users="?"/>

</authorization>

</system.web>

</location>

D. <location path="Premium.aspx">

<system.web>

<authorization>

<deny users="*"/>

<allow roles="Subscribers"/>

</authorization>

</system.web>

</location>

Answer: B


QUESTION 74

You are creating an ASP.NET Web application that uses the SqlMembershipProvider. You plan to test locally and deploy to multiple production servers.

You need to ensure that each deployed application accesses the same production database in Microsoft SQL Server.

Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

A. Run the aspnet_regsql command to create the database on the appropriate SQL Server computer.

B. Right-click App_Data in your Visual Studio 2010 project, click Add, and select New Item to create the SQL Server database on the appropriate SQL Server computer.

C. Modify the connection string in the web.config file to specify the names of the production server and database.

D. Modify the web.release.config file to transform the connection string to specify the names of the production server and database.

Answer: AD


QUESTION 75

You are implementing an ASP.NET Web application. Users will authenticate to the application with an ID.

The application will allow new users to register for an account.

The application will generate an ID for the user based on the user’s full name. You need to implement this registration functionality.

Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

A. Configure the SqlMembershipProvider in the web.config file.

B. Configure the SqlProfileProvider in the web.config file. (New answer from TestKiller, SqlMembershipProvider is not changed)

C. Create an ASP.NET page that contains a default CreateUserWizard control to create a new user account.

D. Create an ASP.NET page that contains a custom form that collects the user information and then uses

the Membership.CreateUser method to create a new user account.

Answer: AD


QUESTION 76

You use the ASP.NET Web Application template to create an application in a new Visual Studio solution. The project uses types that are defined in a class library project.

Source code for the class library is frequently modified.

You need to ensure that classes in the Web application project always reference the most recent version of the class library types.

What should you do?

A. Add the class library project to the solution. Modify the class library project to add a reference to the Web application project.

B. Add the class library project to the solution. Modify the Web application project to add a reference to the class library project.

C. Add a post-build step to the Web application project that copies the most recent version of the class library assembly to the bin folder of the Web application.

D. Add a post-build step to the class library project that copies the most recent version of the class library assembly to the App_Code folder of the Web application. In the <compilation /> section of the web. config file,

add an <assembly /> entry that specifies the location of the class library assembly.

Answer: B


QUESTION 77

You are developing an ASP.NET application by using Visual Studio 2010. You need to interactively debug the entire application.

Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

A. Set the Debug attribute of the compilation node of the web.config file to true.

B. Add a DebuggerDisplay attribute to the code-behind file of the page that you want to debug.

C. Select the ASP.NET debugger option in the project properties.

D. Define the DEBUG constant in the project settings.

Answer: AC


QUESTION 78

You are deploying an ASP.NET Web application to a remote server.

You need to choose a deployment method that will ensure that all IIS settings, in addition to the Web content, will deploy to the remote server.

Which deployment method should you choose?

A. the XCOPY command-line tool

B. the Copy Web Site tool

C. the Web Deployment tool

D. the Publish Web Site utility

Answer: C


QUESTION 79

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

You need to ensure that the connection string value that is stored in the web.config file is updated to the production server’s connection string value during publishing.

What should you do?

A. Add the following code to the web.config file.

<connectionStrings>

<add name="DB" connectionString="Server=ProdServer;Database=ProdDB; Integrated Security=SSPI;" providerName="Release" />

</connectionStrings>

B. Add the following code to the web.config file.

<connectionStrings>

<add name="DB" connectionString="Server=ProdServer;Database=ProdDB;

Integrated Security=SSPI;" xdt:Transform="Replace" xdt:Locator="Match(name)"

/>

</connectionStrings>

C. Add the following code to the web.release.config file.

<connectionStrings>

<add name="DB" connectionString="Server=ProdServer;Database=ProdDB;

Integrated Security=SSPI;" providerName="Release" />

</connectionStrings>

D. Add the following code to the web.release.config file.

<connectionStrings>

<add name="DB" connectionString="Server=ProdServer;Database=ProdDB;

Integrated Security=SSPI;" xdt:Transform="Replace" xdt:Locator="Match(name)"

/>

</connectionStrings>

Answer: D


QUESTION 80

You are implementing an ASP.NET application.

The application includes a Person class with property Age.

You add a page in which you get a list of Person objects and display the objects in a GridView control.

You need to add code so that the GridView row is highlighted in red if the age of the person is less than 18. Which GridView event should you handle?

A. RowDataBound

B. RowCommand

C. RowUpdated

D. RowEditing

Answer: A

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