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

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

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

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

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

  1. Add the following options to each $.ajax function call:

     global: true, 
    error: function (XMLHttpRequest, textStatus, errorThrown){ $("#errorInfo").text("<li>Error information is: " + textStatus + "</li>");
  2. 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>"); });
  3. Add the following option to each $.ajax function call:

    error: function (XMLHttpRequest, textStatus, errorThrown){ $("#errorInfo").text("<li>Error information is: " + textStatus + "</li>"); }
  4. 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: Answer is b

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

  1. $.ajax({
    type: "GET",
    url: localURL,
    dataType: "jsonp",
    success: function(htmlText) {
    $("#span1").text(htmlText);
    }
    });
  2. $.ajax(localURL, {},
    function(htmlText) {
    $("#span1").html(htmlText);
    },
    "html");
  3. $.ajax({
    type: "GET",
    url: localURL,
    dataType: "html",
    success: function(htmlText) {
    $("#span1").innerHTML = htmlText;
    }
    });
  4. $.ajax({
    type: "GET",
    url: localURL,
    success: function(htmlText) {
    $("#span1").html(htmlText);
    }
    });
Answer: Answer is d

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

  1. $.ajax({
    type: "GET",
    url: serviceURL,
    success: function(xml) {
    $.each($(xml), function(i, item) {
    $("<option>").attr("value", id)
    .text(tx).appendTo("#dropdown");
    });
    }
    });
  2. $.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");
    });
    }
    });
  3. $.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");
    });
    }
    });
  4. $.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: Answer is c

  1. <location path="Premium.aspx">
    <system.web>
    <authorization>
    <allow users="Subscribers"/>
    <deny users="*"/>
    </authorization>
    </system.web>
    </location>
  2. <location path="Premium.aspx">
    <system.web>
    <authorization>
    <allow roles="Subscribers"/>
    <deny users="*"/>
    </authorization>
    </system.web>
    </location>
  3. <location path="Premium.aspx">
    <system.web>
    <authorization>
    <allow roles="Subscribers"/>
    <deny users="?"/>
    </authorization>
    </system.web>
    </location>
  4. <location path="Premium.aspx">
    <system.web>
    <authorization>
    <deny users="*"/>
    <allow roles="Subscribers"/>
    </authorization>
    </system.web>
    </location>
Answer: Answer is b

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

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

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

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

Answer: Answer is a, d

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

  2. Configure the SqlProfileProvider in the web.config file.

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

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

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

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

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

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

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

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

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

  4. Define the DEBUG constant in the project settings.

Answer: Answer is a, c

  1. the XCOPY command-line tool

  2. the Copy Web Site tool

  3. the Web Deployment tool

  4. the Publish Web Site utility

Answer: Answer is c

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.

;