<   W3Schools jQuery Quiz   >

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

( )1. Which jQuery method is used to set one or more style properties for selected elements?(1)css() (2)html() (3)style() (4)N/A
( )2. 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");
( )3. Which jQuery method should be used to deal with name conflicts?(1)nameConflict() (2)noNameConflict() (3)noConflict() (4)conflict()
( )4. Which of the following is correct?(1)N/A (2)jQuery is a JavaScript Library (3)jQuery is a JSON Library (4)N/A
( )5.  Is jQuery a W3C standard?(1)No (2)Yes (3)N/A (4)N/A
( )6. The jQuery html() method works for both HTML and XML documents(1)N/A (2)N/A (3) False (4)TRUE
( )7. 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"
( )8. 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
( )9. 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()
( )10. 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()
( )11. Which jQuery method is used to remove selected elements?(1)remove() (2)detach() (3)N/A (4)Both methods can be used
( )12. Look at the following selector: $("div p"). What does it select?(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
( )13. 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
( )14. Look at the following selector: $("p#intro"). What does it select?(1)N/A (2)N/A (3)The p element with id="intro" (4)All p elements with class="intro"
( )15. With jQuery, look at the following selector: $("div.intro"). What does it select?(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"
( )16. Is it possible to use jQuery together with AJAX?(1)N/A (2)N/A (3)No (4)Yes
( )17. Is jQuery a library for client scripting or server scripting?(1)Client scripting (2)N/A (3)N/A (4)Server scripting
( )18. What scripting language is jQuery written in?(1)VBScript (2)C++ (3)JavaScript (4)C#
( )19. Which jQuery method returns the direct parent element of the selected element?(1)parent() (2)parents() (3)ancestors() (4)ancestor()
( )20. The jQuery animate() method can be used to animate ANY CSS property?(1)N/A (2)Yes (3)Only properties containing numeric values (4)All properties except the shorthand properties
( )21. Look at the following selector: $("div"). What does it select?(1)All div elements (2)The first div element (3)N/A (4)N/A
( )22. Which jQuery method is used to perform an asynchronous HTTP request?(1)N/A (2)jQuery.ajaxSetup() (3)jQuery.ajax() (4)jQuery.ajaxAsync()
( )23. Which sign does jQuery use as a shortcut for jQuery?(1) the ? Sign (2)the % sign (3)the $ sign (4)N/A
( )24. Which jQuery method is used to hide selected elements?(1)hide() (2)hidden() (3)display(none) (4) visible(false)
( )25. jQuery uses CSS selectors to select elements?(1)N/A (2)N/A (3)TRUE (4)FALSE

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

詳解: