wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

jQuery Basic I

Total questions: 5

Worksheet time: 2mins

Name
Class
Date
1.

What is jQuery primarily used for?

a)

Styling web pages with CSS

b)

Simplifying JavaScript development

c)

Creating databases

d)

Designing website layouts

2.

How do you include jQuery in your HTML file using a CDN?

a)

<script src="jquery.js"></script>

c)

<link rel="stylesheet" href="jquery.css">

d)

<script type="text/javascript" src="jquery.min.js"></script>

3.

Which syntax is used to select elements by their ID in jQuery?

a)

$("element")

b)

$(".class-name")

c)

$("#id-name")

d)

$("tag-name")

4.

What does the .click() method do in jQuery?

a)

Changes the color of an element

b)

Handles click events

c)

Hides an element

d)

Animates an element

5.

Which method is used to make an AJAX GET request in jQuery?

a)

$.post()

b)

$.get()

c)

$.ajax()

d)

Both b and c