<   W3Schools jQuery Quiz   >

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

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

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

詳解: