[Pass Ensure VCE Dumps] Free PassLeader 70-515 VCE and PDF Dumps With New Update Exam Questions (61-80)

Passed 70-515 exam with the best PassLeader 70-515 exam dumps now! PassLeader are supplying the latest 299q 70-515 vce and pdf exam dumps covering all the new questions and answers, it is 100 percent pass ensure for 70-515 exam. PassLeader offer PDF and VCE format 70-515 exam dumps, and free version VCE player is also available. Visit passleader.com now and download the 100 percent passing guarantee 299q 70-515 braindumps to achieve your new 70-515 certification easily!

keywords: 70-515 exam,299q 70-515 exam dumps,299q 70-515 exam questions,70-515 pdf dumps,70-515 practice test,70-515 vce dumps,70-515 study guide,70-515 braindumps,TS: Web Applications Development with Microsoft .NET Framework 4 Exam

QUESTION 61
You create a Web page that contains drop-down menus that are defined by using div tags in the following code.
<div class=”dropdown-menu”>
<div class=”menu-title”>Menu One</div>
<div class=”menu-items” style=”display:none;”>
<div><a href=”#”>Item One</a></div>
<div><a href=”#”>Item Two</a></div>
</div>
</div>
<div class=”dropdown-menu”>
<div class=”menu-title”>Menu Two</div>
<div class=”menu-items” style=”display:none;”>
<div><a href=”#”>Item Three</a></div>
<div><a href=”#”>Item Four</a></div>
</div>
</div>
You need to write a JavaScript function that will enable the drop-down menus to activate when the user positions the mouse over the menu title. Which code segment should you use?

A.    $(“.dropdown-menu”).hover(
function () {
$(“.menu-items”).slideDown(100);
},
function () {
$(“.menu-items”).slideUp(100);
}
);
B.    $(“.dropdown-menu”).hover(
function () {
$(“.menu-items”, this).slideDown(100);
},
function () {
$(“.menu-items”, this).slideUp(100);
}
);
C.    $(“.dropdown-menu”).hover(
function () {
$(this)”.slideDown(100);
},
function () {
$(this).slideUp(100);
}
);
D.    $(“.dropdown-menu”).hover(
function () {
$(“this.menu-title”,).slideDown(100);
},
function () {
$(“this.menu-title”,).slideUp(100);
}
);

Answer: B

QUESTION 62
You are implementing an ASP.NET application that makes extensive use of JavaScript libraries. Not all pages use all scripts, and some scripts depend on other scripts. When these libraries load sequentially, some of your pages load too slowly. You need to use the ASP.NET Ajax Library Script Loader to load these scripts in parallel. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

A.    In your site’s master page, add a call to Sys.loader.defineScripts to define each of the scripts that are used in the site.
B.    In your site’s master page, add a call to Sys.loader.registerScript to define each of the scripts that are used in the site.
C.    In each page that uses scripts, add a call to Sys.get for each script that is needed in that page.
D.    In each page that uses scripts, add a call to Sys.require for each script that is needed in that page.

Answer: AD

QUESTION 63
You create a Web page that contains the following image element.
<img id=”myImage” src=”/image1.png” />
You need to write a JavaScript function that will dynamically change which image is displayed. Which code segment should you use?

A.    function changeImage() {
myImage.src = “image2.png”;
}
B.    function changeImage() {
document.getElementById(“myImage”).src = “image2.png”;
}
C.    function changeImage() {
getElementById(“myImage”).src = “image2.png”;
}
D.    function changeImage() {
window.getElementById(“myImage”).src = “image2.png”;
}

Answer: B

QUESTION 64
A Web page includes the HTML shown in the following code segment.
<span id=”ref”>
<a name=Reference>Check out</a> the FAQ on <a href=”http://www.contoso.com”>Contoso</a>’s web site for more information:
<a href=”http://www.contoso.com/faq”>FAQ</a>.
</span>
<a href=”http://www.contoso.com/home”>Home</a>
You need to write a JavaScript function that will dynamically format in boldface all of the hyperlinks in the ref span. Which code segment should you use?

A.    $(“#ref”).filter(“a[href]”).bold();
B.    $(“ref”).filter(“a”).css(“bold”);
C.    $(“a”).css({fontWeight:”bold”});
D.    $(“#ref a[href]”).css({fontWeight:”bold”});

Answer: D

QUESTION 65
You create a Web page that contains the following div.
<div id=”target”>
</div>
You have a JavaScript array named imageurls that contains a list of image URLs. You need to write a JavaScript function that will insert images from the URLs into target. Which code segment should you use?

A.    $(imageurls).each(function(i,url){
$(“<img/>”, url).append(“#target”);
});
B.    $(imageurls).each(function(i,url){
$(“#target”) += $(“<img/>”).attr(“src”, url);
});
C.    $.each(imageurls, function(i,url){
$(“<img/>”).attr(“src”, url).appendTo(“#target”);
});
D.    $.each(imageurls, function(i,url){
$(“#target”).append(“<img/>”).src = url;
});

Answer: C

QUESTION 66
You create a Web page that contains the following code.
<script type=”text/javascript”>
var lastId = 0;
</script>
<div class=”File”>
Choose a file to upload:
<input id=”File0″ name=”File0″ type=”file” />
</div>
<input id=”AddFile” type=”button” value=”Add a File” />
<input id=”Submit” type=”submit” value=”Upload” />
You need to provide the following implementation.
– Each time the AddFile button is clicked, a new div element is created.
– The new div element is appended after the other file upload div elements and before the AddFile span.
– Each new element has a unique identifier.
Which code segment should you use?

A.    $(“#AddFile”).click(function () {
var id = “File” + ++lastId;
var item = $(“.File:first”).clone(true);
$(“input:file”, item).attr({ id: id, name: id });
item.insertBefore(“#AddFile”);
});
B.    $(“#AddFile”).click(function () {
var id = “File” + ++lastId;
$(“.File:first”).clone(true).attr({ id: id, name: id }).
insertBefore(“#AddFile”);
});
C.    $(“#AddFile”).click(function () {
var id = “File” + ++lastId;
});
D.    $(“#AddFile”).click(function () {
var id = “File” + ++lastId;
var item = $(“.File:first”).clone(true);
$(“input:file”, item).attr({ id: id, name: id });
item.insertAfter(“input[type=file]”);
});

Answer: A

QUESTION 67
You are building an ASP.NET control. The control displays data by using a table element with a class attribute value of Results. The control should expose a client-side event named onrowselected that fires when a check box in a table row is selected. You need to implement this client-side event. What should you do?

A.    $(‘.Results input:checked’).onrowselected = function (e, sender)
{

};
B.    $(‘.Results input:checked’).bind(‘onrowselected’, function
(e, sender)
{

});
C.    $(‘.Results’).bind(‘onrowselected’, function (e, sender) {

}).click(function (e) {
if ($(e.target).is(‘input:checked’)) {
$(‘.Results’).trigger(‘onrowselected’, [$(e.target)]);
}
});
D.    $(‘.Results’).onrowselected($.proxy($(this).find(‘input:checked’),
function (e, sender) {

}));

Answer: C

QUESTION 68
You create a Web page that contains the following code. (Line numbers are included for reference only.)
01 <script>
02 function changeColor(c) {
03 message.style.color = c;
04 }
05 </script>
07 <p id=”message”>Welcome!</p>
08 <ul id=”color”>
09 <li>Black</li>
10 <li>Red</li>
11 </ul>
You need to ensure that when the user clicks an item in the list, the text color of the “Welcome!” message will change. Which declaration should you use?

A.    <ul id=”color”>
<li onclick=”changeColor(this.innerText);”>Black</li>
<li onclick=”changeColor(this.innerText);”>Red</li>
</ul>
B.    <ul id=”color”>
<li onclick=”changeColor(this.style.color);”>Black</li>
<li onclick=”changeColor(this.style.color);”>Red</li>
</ul>
C.    <ul id=”color”>
<li><a onfocus=”changeColor(this.innerText);”>Red</a></li>
<li><a onfocus=”changeColor(this.innerText);”>Black</a></li>
</ul>
D.    <ul id=”color”>
<li><a onfocus=”changeColor(this.innerText);”>Red</a></li>
<li><a onfocus=”changeColor(this.innerText);”>Black</a></li>
</ul>

Answer: A

QUESTION 69
You are implementing an ASP.NET AJAX page. You add the following control to the page.
<asp:UpdatePanel ID=”pnl1″ runat=”server” UpdateMode=”Conditional”>
<ContentTemplate> … </ContentTemplate>
</asp:UpdatePanel>
You need update the contents of the UpdatePanel without causing a full reload of the page. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

A.    Add the following control before the UpdatePanel.
<asp:Timer ID=”Timer1″ OnLoad=”Timer1_Tick” runat=”server” Interval=”3000″ />
B.    Add the following control within the UpdatePanel.
<asp:Timer ID=”Timer1″ OnLoad=”Timer1_Tick” runat=”server” Interval=”3000″ />
C.    Add an AsyncPostBackTrigger that references Timer1.
D.    Add a PostBackTrigger that references Timer1.

Answer: BC

QUESTION 70
You are implementing an ASP.NET AJAX page. You add two UpdatePanel controls named pnlA and pnlB. pnlA contains an UpdatePanel control named pnlAInner in its content template. You have the following requirements.
– Update panels pnlA and pnlB must refresh their content only when controls that they contain cause a postback.
– Update panel pnlAInner must refresh its content when controls in either pnlA or pnlB or pnlAInner cause a postback.
You need to configure the panels to meet the requirements. What should you do?

A.    Set the UpdateMode of pnlA and pnlB to Conditional.
Set the UpdateMode of pnlAInner to Always.
B.    Set the UpdateMode of pnlA and pnlB to Conditional.
Set the UpdateMode of pnlAInner to Conditional, and add AsyncPostBackTrigger elements to its Triggers element for every control in pnlA.
C.    Set the UpdateMode of pnlA and pnlB to Always.
Set the UpdateMode of pnlAInner to Conditional.
D.    Set the UpdateMode of pnlA and pnlB to Always.
Set the UpdateMode of pnlAInner to Always, and add AsyncPostBackTrigger elements to its Triggers element for every control in pnlB.

Answer: A


http://www.passleader.com/70-515.html

QUESTION 71
You are implementing an ASP.NET AJAX page that contains two div elements. You need to ensure that the content of each div element can be refreshed individually, without requiring a page refresh. What should you do?

A.    Add two forms to the page.
Add a script manager and an update panel to each form.
Add a content template to each update panel, and move each div element into a content template.
B.    Add two forms to the page.
Add a script manager and an update panel to each form.
Add a content template to each update panel, and move each div element into a content template.
C.    Add a form and two update panels to the page.
Add a script manager to the form.
Add a content template to each update panel, and move a div element into each content template.
D.    Add a form and two update panels to the page.
Add two script managers to the form, one for each update panel.
Add a content template to each update panel, and move each div element into a content template.

Answer: C

QUESTION 72
You create an ASP.NET page. The page uses the jQuery $.ajax function to make calls back to the server in several places. You add the following div element to the page.
<div id=”errorInfo”>
</div>
You need to implement a single error handler that will add error information from all page $.ajax calls to the div named errorInfo. What should you do?

A.    Add the following options to each $.ajax function call:
global: true,
error: function (XMLHttpRequest, textStatus, errorThrown)
{ $(“#errorInfo”).
text(“<li>Error information is: ” + textStatus + “</li>”);
B.    Add the following code to the $(document).ready function on the page:
$(“#errorInfo”).ajaxError(function(event, request, settings)
{ $(this).append
(“<li>Error requesting page ” + settings.url + “</li>”); });
C.    Add the following option to each $.ajax function call:
error: function (XMLHttpRequest, textStatus, errorThrown)
{ $(“#errorInfo”).
text(“<li>Error information is: ” + textStatus + “</li>”);
}
D.    Add the following code to the $(document).ready function on the page:
$.ajaxError(function(event, request, settings){
$(this).append(“<li>Error requesting page ” + settings.url +
“</li>”);});
Add the following option to each $.ajax function call:
global: true

Answer: B

QUESTION 73
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 74
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>[email protected]</email>
</user>
<user id=”second”>
<name>Name of second user</name>
<email>[email protected]</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 75
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 76
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 77
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
Explanation:
CHAPTER 13 Implementing User Profiles, Authentication, and Authorization Lesson 1: Working with User Profiles
SqlMembershipProvider Class
http://msdn.microsoft.com/en-us/library/system.web.security.sqlmembershipprovider.aspx

QUESTION 78
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 79
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 80
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


http://www.passleader.com/70-515.html