jQuery MCQ Test: jQuery MCQs - Practice Questions
1. In jQuery, what is the purpose of the `Deferred` object?
2. In jQuery, how do you select elements that are visible on the screen?
3. How do you select the last child element of a specific parent element in jQuery?
4. In jQuery, what does the `.replaceWith()` method do?
5. What is the purpose of the jQuery `fadeOut()` method?
6. In jQuery, what does the `slideUp()` method do?
7. What does the $ symbol represent in jQuery?
8. How can you select elements that do not have a specific class in jQuery?
9. What does the jQuery `remove()` method do?
10. What does the jQuery `attr()` method do?
11. In jQuery, how do you select all odd-indexed elements?
12. Which jQuery method is used to attach a function to be executed when the DOM is fully loaded?
13. Which jQuery method is used to add a class to an element?
14. What is the purpose of the jQuery `fadeIn()` method?
15. Which method is used in jQuery to perform an asynchronous HTTP request?
16. In jQuery, how do you select elements that contain a specific text?
17. In jQuery, what does the `.empty()` method do?
18. Which jQuery method is used to filter elements based on a selector?
19. How can you delay the execution of a function in jQuery?
20. How can you select all elements with the class 'example' in jQuery?
21. In jQuery, what does the `serialize()` method do?
22. How do you select all elements that have a specific attribute with a value ending with 'xyz' in jQuery?
23. What does the jQuery `off()` method do?
24. What is the purpose of the jQuery `serializeArray()` method?
25. Which jQuery method is used to execute a function for each element in the set of matched elements, but in reverse order?
26. What does the jQuery `fadeIn()` method do?
27. Which jQuery method is used to perform an animation with a callback function?
28. Which jQuery method is used to change the text content of an element and all its descendants?
29. Which jQuery method is used to animate multiple properties simultaneously?
30. How can you select all elements with an attribute value starting with 'abc' in jQuery?
31. What is the purpose of the jQuery `wrap()` method?
32. What is the purpose of the jQuery `promise()` method?
33. In jQuery, what does the `prop()` method do?
34. What event handler is used to execute a function when the document is fully loaded?
35. Which jQuery method is used to stop all animations on the matched elements?
36. What does the jQuery `slideDown()` method do?
37. What is the purpose of the jQuery library?
38. How do you select all elements with an attribute value starting with 'abc' in jQuery?
39. How do you select the parent element of a specific child element in jQuery?
40. Which event is triggered when a user clicks on an element in jQuery?