News:

SQL Table To C# Entity Model ConverterEntity Model (Class Properties) to SQL Table ConverterIf you encounter any trouble visiting our site, please contact us.

MCPD- Exam 70-515: Web Applications Development with Microsoft .NET Framework 4

  1. 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.

  2. 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.

  3. In each page that uses scripts, add a call to Sys.get for each script that is needed in that page.

  4. In each page that uses scripts, add a call to Sys.require for each script that is needed in that page.

Answer: Answer is a

<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?

  1. function changeImage() { myImage.src = "image2.png"; }
    
  2. function changeImage() { document.getElementById("myImage").src = "image2.png"; }
    
  3. function changeImage() { getElementById("myImage").src = "image2.png"; }
    
  4. function changeImage() { window.getElementById("myImage").src = "image2.png"; }
    
Answer: Answer is b

<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?

  1. $("#ref").filter("a[href]").bold();
  2. $("ref").filter("a").css("bold");
  3. $("a").css({fontWeight:"bold"});
    
  4. $("#ref a[href]").css({fontWeight:"bold"});
    
Answer: Answer is d

<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?

  1. $(imageurls).each(function(i,url){
    $("<img/>", url).append("#target");
    });
  2. $(imageurls).each(function(i,url){
    $("#target") += $("<img/>").attr("src", url);
    });
  3. $.each(imageurls, function(i,url){
    $("<img/>").attr("src", url).appendTo("#target");
    });
  4. $.each(imageurls, function(i,url){
    $("#target").append("<img/>").src = url;
    });
Answer: Answer is c

<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?

  1. $("#AddFile").click(function () {
    var id = "File" + ++lastId;
    var item = $(".File:first").clone(true); $("input:file", item).attr({ id: id, name: id }); item.insertBefore("#AddFile"); });
  2. $("#AddFile").click(function () {
    var id = "File" + ++lastId;
    $(".File:first").clone(true) .attr({ id: id, name: id }) .insertBefore("#AddFile"); });
  3. $("#AddFile").click(function () {
    var id = "File" + ++lastId;
    });
  4. $("#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: Answer is a

  1. $('.Results input:checked').onrowselected = function (e, sender) { ...
    };
  2. $('.Results input:checked').bind('onrowselected', function (e, sender) {
    ...
    });
    
  3. $('.Results').bind('onrowselected', function (e, sender) { ...
    }).click(function (e) {
    if ($(e.target).is('input:checked')) {
    $('.Results').trigger('onrowselected', [$(e.target)]);
    }
    });
  4. $('.Results').onrowselected($.proxy($(this)
    .find('input:checked'), function (e, sender) {
    ...
    }));
Answer: Answer is c

01<script>
02function changeColor(c) {
03message.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?

  1. <ul id="color">
    <li onclick="changeColor(this.innerText);">Black</li>
    <li onclick="changeColor(this.innerText);">Red</li>
    </ul>
  2. <ul id="color">
    <li onclick="changeColor(this.style.color);">Black</li>
    <li onclick="changeColor(this.style.color);">Red</li>
    </ul>
    
  3. <ul id="color">
    <li><a onfocus="changeColor(this.innerText);">Red</a></li> <li><a onfocus="changeColor(this.innerText);">Black</a></li>
    </ul> </ul>
  4. <ul id="color">
    <li onclick="changeColor(this.style.color);">Black</li>
    <li onclick="changeColor(this.style.color);">Red</li>
    </ul>
  5. <ul id="color">
    <li><a
    onfocus="changeColor(this.innerText);">Red</a></li>
    <li><a
    onfocus="changeColor(this.innerText);">Black</a></li>
    </ul>

Answer: Answer is a

<asp:UpdatePanel ID="pnl1" runat="server" UpdateMode="Conditional"> 
<ContentTemplate> ...  </ContentTemplate> 
</asp:UpdatePanel> 

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

  1. Add the following control before the UpdatePanel.

    <asp:Timer ID="Timer1" OnLoad="Timer1_Tick" runat="server" Interval="3000" />
  2. Add the following control within the UpdatePanel.

    <asp:Timer ID="Timer1" OnLoad="Timer1_Tick" runat="server" Interval="3000" />
  3. Add an AsyncPostBackTrigger that references Timer1.

  4. Add a PostBackTrigger that references Timer1.

Answer: Answer is b, c

  1. Set the UpdateMode of pnlA and pnlB to Conditional. Set the UpdateMode of pnlAInner to Always.

  2. 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.

  3. Set the UpdateMode of pnlA and pnlB to Always. Set the UpdateMode of pnlAInner to Conditional.

  4. 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: Answer is a

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?

  1. Set the UpdateMode of pnlA and pnlB to Conditional. Set the UpdateMode of pnlAInner to Always.

  2. 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.

  3. Set the UpdateMode of pnlA and pnlB to Always. Set the UpdateMode of pnlAInner to Conditional.

  4. 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: Answer is a

Advertisement

BCS Preparation now even more easy. ReadBD is the place where you can find all kind of resources to be successful in BCS,Bank,Islami Bank exam and interview.

Looking for job. Try JobLoader- First ever job search engine in Bangladesh. All open bd jobs now a single mouse click away.

;