Search Header Logo

Front-end Asynchronous JavaScript Quiz

Authored by minh nguyễn

Computers

Used 4+ times

Front-end Asynchronous JavaScript Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main disadvantage of using a sync callback?

No guaranteed that callback function is called exactly 1

Hard to handle error in sync callback

Coding styling is ugly when working with multiple callback

No guaranteed that library code will call cb function

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main advantage of using a Promise?

No guaranteed that callback function is called exactly 1

Hard to handle error in sync callback

Built-in error handling mechanism

No guaranteed that library code will call cb function

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'async' keyword in async/await syntax?

To represent the eventual completion or failure of an asynchronous operation

To await concurrent requests

To make the function asynchronous

To handle error in async operations

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main disadvantage of using a Promise?

Coding styling is ugly when working with multiple callback

Hard to handle error in sync callback

Can't reuse users

No guaranteed that callback function is called exactly 1

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'await' keyword in async/await syntax?

To await concurrent requests

To represent the eventual completion or failure of an asynchronous operation

To make the function asynchronous

To handle error in async operations

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main disadvantage of using a sync callback?

Coding styling is ugly when working with multiple callback

No guaranteed that library code will call cb function

Hard to handle error in sync callback

No guaranteed that callback function is called exactly 1

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main advantage of using a Promise?

Built-in error handling mechanism

No guaranteed that callback function is called exactly 1

Hard to handle error in sync callback

No guaranteed that library code will call cb function

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?