AJAX QUIZ DESCRIPTION

What is AJAX ?

  • is a programe
     

  •  is a country name
     

  • is a football club name

_____ JavaScript is also called client-side JavaScript.

  • Microsoft
     

  • Navigator
     

  •  LiveWire
     

  • Native

Ajax is a programming language.

  • True

  • False

Which is the correct jQuery statement to change the color of all <p>
elements which are sibling elements of <pre>?

  • $("#pre").siblings("p").css({"color": "red"});
     

  • $(".pre").siblings("p").css({"color": "red"});
     

  •  $("pre").siblings(".p").css({"color": "red"});
     

  • $("pre").siblings("p").css({"color": "red"});

Uninitialized state of XMLHttpRequest object refers to the state when the object has not been initialized.
 

  • True

  • False

Choose the server-side JavaScript object?

  • FileUpLoad
     

  • Function
     

  • File
     

  • Date

The XMLHttpRequest object supports a method called “quit”.

  • True

  • False

When a user views a page containing a JavaScript program, which machine actually executes the 
script?

  • The User’s machine running a Web browser
     

  • The Web server
     

  •  A central machine deep within Netscape’s corporate offices

     

  •  None of the above
     

Which is the correct jQuery statement to get the value "href" attribute
having id "top"?

  • $("top").attr("href")
     

  •  $(".top").attr("href")
     

  •  $("$top").attr("href")
     

  • $("#top").attr("href")

What is the difference between remove() and empty() methods?

  • remove() removes the selected element and its child elements while empty() removes the child elements of the selected element
     

  • remove() removes the child elements of the selected element while empty() removes the selected elements and its child elements
     

  •  remove() removes the child elements while empty() removes the content of the selected element
     

  •  remove() removes the child elements while empty() removes the content of the selected element and its child elements

The responseText property returns the response as a string format.True or False?

  • True

  • False

Why so JavaScript and Java have similar name?

  • JavaScript is a stripped-down version of Java
     

  • JavaScript’s syntax is loosely based on Java’s
     

  • They both originated on the island of Java
     

  • None of the above

Ajax stands for Synchronous JavaScript and XML.

  • True

  • False

Which one of these technologies is NOT used in AJAX?

  • CSS
     

  • DOM
     

  •  DHTML
     

  •  Flash

What will the following jQuery code do?
$(document).ready(function(){
$("pre").siblings();
});

  •  It will return all parent elements of <pre> element
     

  • It will return all children elements of <pre> element
     

  •  It will return all sibling elements of <pre> element
     

  •  It will return all nonrelative elements of <pre> element

What is the correct syntax for referring to an external script called ” myScript.js”?

  • <script href=” myScript.js”>
     

  • <script name=” myScript.js”>
     

  •  <script src=” myScript.js”>
     

  • None of above

Can a call to the “send” method fire an error (assuming the user’s browser supports the XMLHttpRequest Object and the “send” method )?

  • Yes

  • No

Which is the correct syntax to set the value of a CSS style attribute/property
using the css() method?

  • css("propertyname"="value");
     

  •  css("propertyname","value");
     

  • css("propertyname":"value");
     

  •  css("propertyname":="value");

Assuming that “xmlhttp” is a user-defined variable that carrys the Ajax requesting object, xmlhttp.status can carry a value of 0 after a successful request.

  • True

  • False

Write a jQuery statement to remove all <p> elements with class="prog"?

  • $(".prog").remove();
     

  •  $("p").empty(".prog");
     

  • $("p").remove(".prog");
     

  •  $("p.prog").remove();

Which jQuery DOM method is used to insert content before the selected
elements?

  • before()
     

  • addbefore()
     

  •  addprepend()
     

  • prepend()

Which jQuery method is used to get the direct parent element of the selected element?

  • parent()
     

  • parents()
     

  • parentsUntil()
     

  • All of the above

Which jQuery method is used to get the all ancestor elements of the
selected element, all the way up to the document's root element (<html>)?

  • parent()
     

  • parents()
     

  •  parentsUntil()
     

  • All of the above

ActiveX can be disabled via browser settings.

  • True

  • False

Which jQuery method is used to get or set the height of an HTML element?

  • cssHeight()
     

  • CssHeight()
     

  • height()
     

  • getHeight()

What does the XMLHttpRequest object accomplish in Ajax?

  • It’s the programming language used to develop Ajax applications.
     

  • It provides a means of exchanging structured data between the Web server and client.
     

  • It provides the ability to asynchronously exchange data between Web browsers and a Web 
    server.
     

  • It provides the ability to mark up and style the display of Web-page text.

Which of following has AJAX is a built-in functionality?

  • .NET Framework 3.5
     

  •  .NET Framework 2.0
     

  •  .NET Framework 3.0
     

  •  .NET Framework 4.0

Write a jQuery statement to remove all <pre> elements with class="prog"
and class="old"?

  • $(".prog#old").remove();
     

  • $("pre").empty(".prog",".old");
     

  • $("pre").remove(".prog, .old");
     

  •  $("pre.prog.old").remove();

Using AJAX we can made our web page

  • more interactive and faster
     

  • easy to connect web page with server
     

  • more dynamic

which tool is used to debug ASP.NET AJAX applications ?

  •  Fiddler
     

  • Firebug
     

  • Both
     

  •  None of these