jQuery MCQ Test: jQuery MCQs - Practice Questions
1. In jQuery, what does the `siblings()` method do?
2. In jQuery, how do you select elements that are visible on the screen?
3. In jQuery, what does the `slideUp()` method do?
4. In jQuery, what does the `.empty()` method do?
5. Which jQuery method is used to add a click event handler to an element?
6. How do you select all elements with the attribute 'data-role' in jQuery?
7. Which jQuery method is used to filter elements based on a selector?
8. In jQuery, how do you select all odd-indexed elements?
9. What is the purpose of the jQuery `fadeToggle()` method?
10. Which method is used in jQuery to perform an asynchronous HTTP request?
11. Which jQuery method is used to create a new element?
12. How do you select the parent element of a specific child element in jQuery?
13. How can you delay the execution of a function in jQuery?
14. In jQuery, what does the `.replaceWith()` method do?
15. Which jQuery method is used to animate multiple properties simultaneously?
16. Which jQuery method is used to attach a function to be executed when the DOM is fully loaded?
17. What does the jQuery `off()` method do?
18. In jQuery, what does the `.hasClass()` method do?
19. Which jQuery method is used to remove all child nodes of an element?
20. In jQuery, what does the `.unwrap()` method do?
21. In jQuery, what does the `serialize()` method do?
22. In jQuery, what is the purpose of the `Deferred` object?
23. Which jQuery method is used to delay the execution of functions in the queue?
24. How do you use the `noConflict` mode in jQuery?
25. How can you dynamically load a JavaScript file using jQuery?
26. What is the purpose of the jQuery `slideUp()` method?
27. What is the purpose of the jQuery `promise()` method?
28. How can you select elements that do not have a specific class in jQuery?
29. What is the purpose of the jQuery `map()` method?
30. Which jQuery method is used to add a class to an element?