Search Header Logo

Advanced JavaScript

Authored by Allan Saleh

Computers

Professional Development

Used 74+ times

Advanced JavaScript
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Functions cannot be passed as parameters

True

False

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Media Image

Callback functions are used like this

True

False

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Callback functions are more of a restriction in JS than an advantage

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which of the following functions doesn't take a callback function as one of its parameters?

.addEventListener()

.reduce()

.splice()

.filter()

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Media Image

What is the correct explanation of this code?

sayHi is a function that returns a string that goes into a console.log to get info

sayHi is a function that returns a string and will be executed in 1s

sayHi is a function that returns a string and gets executed in 1000ms but nothing will be printed out because we don't have console.log

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

A function can be called a limited number of times

True

False

Answer explanation

The core thing that makes a function useful is the fact that you can use it an unlimited amount of times

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Is Array.map a high order function?

Yes

No

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?