考卷名稱:W3Schools jQuery Quiz
字體大小:A  A  A 
  考試題目
(1)1.Which of the following is correct?      (1)
(1) jQuery is a JavaScript Library
(2) jQuery is a JSON Library
(3) N/A
(4) N/A
(1)2. jQuery uses CSS selectors to select elements?      (2)
(1) TRUE
(2) FALSE
(3) N/A
(4) N/A
(3)3.Which sign does jQuery use as a shortcut for jQuery?      (3)
(1) the ? Sign
(2) the % sign
(3) the $ sign
(4) N/A
(1)4.Look at the following selector: $("div"). What does it select?      (4)
(1) All div elements
(2) The first div element
(3) N/A
(4) N/A
(2)5.Is jQuery a library for client scripting or server scripting?      (5)
(1) Server scripting
(2) Client scripting
(3) N/A
(4) N/A
(2)6.Is it possible to use jQuery together with AJAX?      (6)
(1) No
(2) Yes
(3) N/A
(4) N/A
(1)7.The jQuery html() method works for both HTML and XML documents      (7)
(1)  False
(2) TRUE
(3) N/A
(4) N/A
(1)8.What is the correct jQuery code to set the background color of all p elements to red?      (8)
(1) $("p").css("background-color","red");
(2) $("p").manipulate("background-color","red");
(3) $("p").layout("background-color","red");
(4) $("p").style("background-color","red");
(1)9.With jQuery, look at the following selector: $("div.intro"). What does it select?      (9)
(1) All div elements with class="intro"
(2) The first div element with class="intro"
(3) All div elements with id="intro"
(4)  The first div element with id="intro"
(2)10.Which jQuery method is used to hide selected elements?      (10)
(1)  visible(false)
(2) hide()
(3) hidden()
(4) display(none)
(1)11.Which jQuery method is used to set one or more style properties for selected elements?      (11)
(1) css()
(2) html()
(3) style()
(4) N/A
(2)12.Which jQuery method is used to perform an asynchronous HTTP request?      (12)
(1) jQuery.ajaxSetup()
(2) jQuery.ajax()
(3) jQuery.ajaxAsync()
(4) N/A
(2)13.What is the correct jQuery code for making all div elements 100 pixels high?      (13)
(1) $("div").height="100"
(2) $("div").height(100)
(3) $("div").yPos(100)
(4) N/A
(3)14.Which statement is true?      (14)
(1) To use jQuery, you do not have to do anything. Most browsers (Internet Explorer, Chrome, Firefox and Opera) have the jQuery library built in the browser
(2) To use jQuery, you must buy the jQuery library at www.jquery.com
(3) To use jQuery, you can refer to a hosted jQuery library at Google
(4) N/A
(4)15.What scripting language is jQuery written in?      (15)
(1) C#
(2) VBScript
(3) C++
(4) JavaScript
(1)16.Which jQuery function is used to prevent code from running, before the document is finished loading?      (16)
(1) $(document).ready()
(2) $(body).onload()
(3) $(document).load()
(4) N/A
(3)17.Which jQuery method should be used to deal with name conflicts?      (17)
(1) nameConflict()
(2) noNameConflict()
(3) noConflict()
(4) conflict()
(1)18.Which jQuery method is used to switch between adding/removing one or more classes (for CSS) from selected elements?      (18)
(1) toggleClass()
(2) altClass()
(3) switch()
(4) switchClass()
(1)19.Look at the following selector: $("div p"). What does it select?      (19)
(1) All p elements inside a div element
(2) The first p element inside a div element
(3) All div elements with a p element
(4) N/A
(1)20. Is jQuery a W3C standard?      (20)
(1) No
(2) Yes
(3) N/A
(4) N/A
(1)21.Look at the following selector: $("p#intro"). What does it select?      (21)
(1) The p element with id="intro"
(2) All p elements with class="intro"
(3) N/A
(4) N/A
(1)22.Which jQuery method is used to remove selected elements?      (22)
(1) Both methods can be used
(2) remove()
(3) detach()
(4) N/A
(1)23.Look at the following selector: $(":disabled"). What does it select?      (23)
(1) All disabled input elements
(2) All elements containing the text "disabled"
(3) All hidden elements
(4) All elements that does not contain the text "disabled"
(4)24.Which jQuery method returns the direct parent element of the selected element?      (24)
(1) parents()
(2) ancestors()
(3) ancestor()
(4) parent()
(2)25.The jQuery animate() method can be used to animate ANY CSS property?      (25)
(1) Yes
(2) Only properties containing numeric values
(3) All properties except the shorthand properties
(4) N/A
 
考卷名稱:W3Schools jQuery Quiz
字體大小:A  A  A