Search Header Logo

Grade 12- Knowledge Booster- JavaScript Events

Authored by Bloomington Innovation

Computers

12th Grade

Used 11+ times

Grade 12- Knowledge Booster- JavaScript Events
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is a JavaScript event?

a) A special type of function

b) An action that can be detected by JavaScript

c) A reserved keyword in JavaScript

d) A method for declaring variables

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which event occurs when a user clicks on an HTML element?

onmouseover

onclick

onchange

onload

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

3. Which event is triggered when the webpage is fully loaded?

onchange

onload

onclick

onsubmit

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the purpose of the onmouseover event in JavaScript?

a) To trigger when a user clicks on an element

b) To trigger when the user presses a key

c) To trigger when the mouse pointer moves over an element

d) To trigger when the webpage is refreshed

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which event is fired when a user changes the value of an input field in a form?

a) onchange

b) onclick

c) onload

d) onblur

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

6. Which event is used to detect when a form is submitted?

a) oninput

b) onfocus

c) onsubmit

d) onreset

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the difference between the onfocus and onblur events in JavaScript?

a) onfocus occurs when an element loses focus, onblur occurs when it gains focus

b) onfocus occurs when an element gains focus, onblur occurs when it loses focus

c) Both are the same

d) Neither of these exist in JavaScript

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?