Advanced JS Part 1

Advanced JS Part 1

12th Grade

10 Qs

quiz-placeholder

Similar activities

Latihan Class Library

Latihan Class Library

9th - 12th Grade

10 Qs

Java Math

Java Math

1st - 12th Grade

10 Qs

اختبار تشخيصي قبلي

اختبار تشخيصي قبلي

11th - 12th Grade

13 Qs

LA7.C7: Turtle Graphics

LA7.C7: Turtle Graphics

9th Grade - University

14 Qs

Arrays, 2D Arrays, and ArrayLists

Arrays, 2D Arrays, and ArrayLists

9th - 12th Grade

15 Qs

ASJ_XII_UH1

ASJ_XII_UH1

1st - 12th Grade

15 Qs

Unilayer Network Quiz Week 2

Unilayer Network Quiz Week 2

12th Grade

11 Qs

Kuis Dadakan ;)

Kuis Dadakan ;)

10th Grade - University

15 Qs

Advanced JS Part 1

Advanced JS Part 1

Assessment

Quiz

Computers

12th Grade

Practice Problem

Hard

Created by

tiya reba

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does AJAX stand for?

Asynchronous JavaScript and XML

Advanced JavaScript and XML

Automatic JavaScript and XML

Asynchronous Java and XML

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main purpose of AJAX in web development?

To improve the security of web applications

To make web pages more visually appealing

To allow asynchronous communication with the server

To prevent cross-site scripting attacks

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which JavaScript event is triggered when a user clicks on an HTML element?

onclick

onhover

onsubmit

onkeyup

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to add an event listener to an HTML button with the ID "myButton" in JavaScript?

getElementById("myButton").addEventListener("click", myFunction);

document.getElementById("myButton").on("click", myFunction);

document.getElementById("myButton").addEventListener("onclick", myFunction);

document.getElement("myButton").onClick = myFunction;


5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which JavaScript event is triggered when a form element loses focus, typically after a user has filled out an input field and clicks away from it?

onblur

onchange

onfocus

oninput

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to add an event listener to the "keydown" event in JavaScript using a function called "handleKeyPress"?


window.onkeydown(handleKeyPress);

document.getElementByTagName("body").onkeydown = handleKeyPress;

document.addEventListener("onkeydown", handleKeyPress);

window.addEventListener("keydown", handleKeyPress);

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to throw a custom exception in JavaScript?

try

catch

throw

finally

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?