Search Header Logo

React & JS

Authored by Raja SK

Computers

University

Used 3+ times

React & JS
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

30 sec • 1 pt

useState() is called as _

React Hook

React Object

React Array

None of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

const [count, setCount] = useState(20)

What is the value of count?

0

20

2

undefined

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

const [count, setCount] = useState()

What is the value of count?

0

20

undefined

None of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The function passed as an argument to higher order function is called

Callback function

React hooks

Asynchronous function

None of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Triple dot operator (...) is called as

Spread operator

Rest operator

Both Spread and Rest operator

No such operator exist

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Promise in JS can be handled using

.then().catch()

Arrays

Objects

Functions

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

React hooks are basically

Functions

Objects

Arrays

None of the above

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?

Discover more resources for Computers