Edu
Hub
Courses
AI Tools
Leaderboard
Login/Register
AR
Abdullah Rashid
abdullah@example.com
Navigation
📚
Courses
🏆
Leaderboard
✨
AI Tools
←
jQuery Fundamentals Quiz
⏱
15:00
Quit
0 / 10 answered
0%
jQuery Fundamentals Quiz
10 questions · Medium difficulty · 00:10:00 min
🔥 In Progress
Question 1
Which method is used to execute code when the DOM is fully loaded?
$(document).ready()
document.addEventListener('DOMContent')
window.onload()
$.loadComplete()
Question 2
What does the jQuery selector $('div#header') target?
Only the body header section
All header elements inside divs
All div elements with ID 'header'
The first div with class 'header'
Question 3
Which method would you use to get the text content of an element without HTML tags?
.text()
.content()
.val()
.html()
Question 4
What does the .on() method primarily handle in jQuery?
DOM traversal
AJAX requests
Event handling
CSS animations
Question 5
Which jQuery method is used to iterate over a collection of elements?
.forAll()
.loop()
.each()
.iterate()
Question 6
How would you select all elements with class 'active' inside a <ul>?
$('ul > .active')
$('.active ul')
$('ul.active')
$('ul .active')
Question 7
Which method adds a class to selected elements?
.appendClass()
.setClass()
.addClass()
.toggleAttribute()
Question 8
What does $('p').hide(500) accomplish?
Hides all paragraphs with a 500ms animation
Hides paragraph with ID 500
Hides the first paragraph for 500 seconds
Delays paragraph display by 500ms
Question 9
Which is the correct syntax for an AJAX GET request using jQuery?
$.ajaxGet(url, callback)
$.get(url, callback)
$(document).get(url, callback)
$.fetch(url).then(callback)
Question 10
What does the .find() method do?
Filters elements by visibility
Locates elements in the entire document
Searches descendant elements of the selected elements
Retrieves parent elements
✅ Answered:
0
⬜ Unanswered:
8
📊
20%
done
Submit Answers →