<   W3Schools jQuery Quiz   >

免費免註冊,彰化一整天線上測驗:http://exam.bestdaylong.com/test3414.htm

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

解答:
001.【3】002.【1】003.【3】004.【4】005.【1】006.【2】007.【3】008.【3】009.【1】010.【3】
011.【4】012.【1】013.【4】014.【2】015.【4】016.【1】017.【2】018.【2】019.【3】020.【1】
021.【3】022.【4】023.【1】024.【1】025.【2】

詳解: