1. Question: You need to write jQuery code to select the first heading (h2) tag on the page and then slowly fade the item into view. Which line of code would accomplish this task?

    A
    $("#h21").fadeIn(500);

    B
    $("h2:first").fadeIn("slow");

    C
    $(".h2:first").fadeIn(500);

    D
    $("h2:first").fadeIn(500);

    Note: Not available
    1. Report
  2. Question: You want to execute a function after the DOM has loaded. This function should bind an event code to be run when the user presses a key on the keyboard inside a text box control with the textBox1 ID. Which steps should you take? (Choose all that apply.)

    A
    Bind to the keyPress event by using the following code. $("#textBox1").bind("keyPress", ())

    B
    Add your event binding code to the $(document).ready() event at the top of your script.

    C
    Add your event binding code to the $(document).load() event at the top of your script.

    D
    Bind to the keyPress event by using the following code. $("#textBox1").add("keyPress", ()).

    Note: Not available
    1. Report
  3. Question: You want to use the .ajax() method to call a web method named GetCityCodes. This web method is contained on the same webpage as the jQuery code and UI markup. This method should be called by using JSON. The web method takes the state parameter. Which of the following calls would you use?

    A
    $.ajax({
    type: "POST",
    dataType: "json",
    contentType: "application/json",
    url: "CityLookup.aspx/GetCityCodes",
    data: "{'state': '" + state + "'}",
    success: function (data) {
    alert(data.d);
    },

    B
    $.ajax({
    type: "POST",
    dataType: "json",
    contentType: "application/json",
    url: "CityLookup.asmx/GetCityCodes",
    data: "{'state': '" + state + "'}",
    success: function (data) {
    alert(state.d);
    },

    C
    $.ajax({
    type: "POST",
    dataType: "json",
    contentType: "application/json",
    url: "CityLookup.aspx/GetCityCodes/" + state,
    success: function (data) {
    alert(data.d);
    },

    D
    [/code] $.ajax({ type: "POST", dataType: "json", contentType: "application/json", url: "CityLookup.asmx/GetCityCodes", data: "state:" + state, success: function (data) { alert(data.d); }, [/code]

    Note: Not available
    1. Report
  4. Question: You want to use an HTTP GET to retrieve a basic text file from the server by using AJAX and jQuery. Which of the following jQuery methods would you use?

    A
    $.post()

    B
    $.getScript()

    C
    $getJSON()

    D
    $.get()

    Note: Not available
    1. Report
  5. Question: You need to have ASP.NET dynamically generate Microsoft Word documents when a web browser requests a file ending in a .docx extension. How can you do this?

    A
    Implement the IPartitionResolver interface.

    B
    Implement the IHttpModule interface.

    C
    Implement the IHttpHandler interface.

    D
    Implement the IHttpHandlerFactory interface.

    Note: Not available
    1. Report
  6. Question: You are writing a custom HTTP handler to be hosted in IIS 7.0 integrated mode. You intend to register the handler by using the Web.config file. What should you do? (Choose all that apply.)

    A
    Define an <add/> element inside the <httpHandlers/> element.

    B
    Define an <add/> element inside the <handlers/> element.

    C
    Add a <httpHandlers/> element to the <system.Web/> element.

    D
    Add a <handlers/> element to the <system.WebServer/> element.

    Note: Not available
    1. Report
  7. Question: You want to create custom code that will be run for each request made to a website. What steps should you take? (Choose all that apply.)

    A
    Create a class file that implements the IHttpHandler interface.

    B
    Override the Init method to connect your code to specific application events.

    C
    Override the ProcessRequest method to wire up your code to specific application events.

    D
    Create a class file that implements the IHttpModule interface.

    Note: Not available
    1. Report
  8. Question: You want to create a new web service that will expose multiple methods that are meant to work with user-specific data via a transaction. You decide to use ASP.NET session state to manage the user’s context on the server between web service requests. How should you define your web service?

    A
    Define a class that inherits from WebServiceAttribute.

    B
    Define a class that inherits from WebService.

    C
    Define a class that inherits from WebMethodAttribute.

    D
    Do not inherit from a base class. Hosting the web service in ASP.NET is sufficient.

    Note: Not available
    1. Report
  9. Question: You want to consume an existing web service from your ASP.NET website. What actions should you take? (Choose all that apply.)

    A
    Use the Add Reference dialog box to set a reference to the WSDL file that contains the web service.

    B
    Use the Add Web Reference dialog box to point to the URL of the web service.

    C
    Write a method in your website that has the same function signature as your web service. Do not implement this method. Instead, mark it with the WebMethod attribute.

    D
    Call a proxy class that represents your web service.

    Note: Not available
    1. Report
  10. Question: You need to secure your web service. The service will be accessed over the Internet by multiple systems of different types. Authentication information should be secured. You want to trust only those clients who have been verified as trusted. What type of security should you consider?

    A
    Windows Basic

    B
    Windows Digest

    C
    Client certificates

    D
    Custom SOAP headers

    Note: Not available
    1. Report
Copyright © 2025. Powered by Intellect Software Ltd