Web Bootcamp Day 3

Web Bootcamp Day 3

10 Qs

quiz-placeholder

Similar activities

Challenge Yourself #CHAPTER1

Challenge Yourself #CHAPTER1

KG - University

8 Qs

CASPR MERL Roadshow Pre/Post Test

CASPR MERL Roadshow Pre/Post Test

KG - University

12 Qs

Project Management 1

Project Management 1

KG - University

15 Qs

V4 Day 1&2 Review

V4 Day 1&2 Review

KG - University

12 Qs

Who Wants to be an Agile Master?

Who Wants to be an Agile Master?

KG - University

10 Qs

Priming Quiz

Priming Quiz

KG - University

8 Qs

Password Door lock System

Password Door lock System

KG - University

10 Qs

FLASH QUIZ (Advertisement, Announcement, Invitation Text)

FLASH QUIZ (Advertisement, Announcement, Invitation Text)

KG - University

10 Qs

Web Bootcamp Day 3

Web Bootcamp Day 3

Assessment

Quiz

Easy

Created by

Rishabh Daga

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which method is used to add an event listener to an HTML element in JavaScript?

addEventListener

attachEvent

addEvent

setEventListener

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is event delegation in JavaScript?

Attaching multiple event listeners to the same element

Delegating events to child elements

Delegating events to a common ancestor

Adding multiple listeners for the same event

3.

MULTIPLE SELECT QUESTION

20 sec • 1 pt

Which of these use cases is possible with event.stopPropagation()?

Prevent the default behaviour of the event

Stop the event from bubbling to the parent event

Pause the event handler execution

Stop the event from reaching the target

4.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which of these is a benefit of event delegation?

It makes the code easier to read

It makes it simpler to handle dynamic elements

It improves the performance of the code

It works asynchronously

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the context of Promises, what does "resolved" mean?

It means the promise has been rejected
It means the promise is still pending

It means the promise has been fulfilled

It means the promise is in the initial state

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the three possible states of a Promise?

Pending, Fulfilled, Rejected
Active, Inactive, Completed
True, False, Undefined
Start, Running, End

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What keyword is used to declare an asynchronous function in JavaScript?

async

await

asyncFunction

promise

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?