Home

jQuery Online Question

Which of the following is correct? (A) jQuery is a JSON Library (B) jQuery is a JavaScript Library

jQuery uses CSS selectors to select elements? (A) True (B) False

Which sign does jQuery use as a shortcut for jQuery? (A) the % sign (B) the $ sign (C) the ? Sign

Look at the following selector: $("div"). What does it select? (A) The first div element (B) All div elements

Is jQuery a library for client scripting or server scripting? (A) Client scripting (B) Server scripting

Is it possible to use jQuery together with AJAX? (A) No (B) Yes

The jQuery html() method works for both HTML and XML documents (A) True (B) False

What is the correct jQuery code to set the background color of all p elements to red? (A) $("p").manipulate("background-color","red"); (B) $("p").layout("background-color","red"); (C) $("p").css("background-color","red"); (D) $("p").style("background-color","red");

With jQuery, look at the following selector: $("div.intro"). What does it select? (A) All div elements with id="intro" (B) The first div element with class="intro" (C) The first div element with id="intro" (D) All div elements with class="intro"

Which jQuery method is used to hide selected elements? (A) hide() (B) display(none) (C) visible(false) (D) hidden()

jQuery Online Question

Which jQuery method is used to set one or more style properties for selected elements? (A) html() (B) css() (C) style()

Which jQuery method is used to perform an asynchronous HTTP request? (A) jQuery.ajaxAsync() (B) jQuery.ajaxSetup() (C) jQuery.ajax()

What is the correct jQuery code for making all div elements 100 pixels high? (A) $("div").height(100) (B) $("div").yPos(100) (C) $("div").height="100"

Which statement is true? (A) To use jQuery, you do not have to do anything. Most browsers have the jQuery library built in the browser (B) To use jQuery, you can refer to a hosted jQuery library at Google (C) To use jQuery, you must buy the jQuery library at www.j (D) query.com

What scripting language is jQuery written in? (A) C++ (B) JavaScript (C) C# (D) VBScript

Which jQuery function is used to prevent code from running, before the document is finished loading? (A) $(document).ready() (B) $(document).load() (C) $(body).onload()

Which jQuery method should be used to deal with name conflicts? (A) conflict() (B) noConflict() (C) noNameConflict() (D) nameConflict()

Which jQuery method is used to switch between adding/removing one or more classes (for CSS) from selected elements? (A) switchClass() (B) altClass() (C) switch() (D) toggleClass()

Look at the following selector: $("div p"). What does it select? (A) All div elements with a p element (B) The first p element inside a div element (C) All p elements inside a div element

Is jQuery a W3C standard? (A) Yes (B) No

jQuery Online Question

Look at the following selector: $("p#intro"). What does it select? (A) The p element with id="intro" (B) All p elements with class="intro"

Which jQuery method is used to remove selected elements? (A) detach() (B) Both methods can be used (C) remove()

Look at the following selector: $(":disabled"). What does it select? (A) All disabled input elements (B) All elements that does not contain the text "disabled" (C) All hidden elements (D) All elements containing the text "disabled"

Which jQuery method returns the direct parent element of the selected element? (A) ancestor() (B) ancestors() (C) parents() (D) parent()

The jQuery animate() method can be used to animate ANY CSS property? (A) All properties except the shorthand properties (B) Only properties containing numeric values (C) Yes