React & JS - Day 5 - KEC

React & JS - Day 5 - KEC

Professional Development

12 Qs

quiz-placeholder

Similar activities

Quiz #1

Quiz #1

Professional Development

15 Qs

PHP Quiz

PHP Quiz

Professional Development

10 Qs

math

math

Professional Development

14 Qs

HPE Storage Product Enablement

HPE Storage Product Enablement

Professional Development

10 Qs

PySpark Quiz Round

PySpark Quiz Round

Professional Development

11 Qs

basic of robotics

basic of robotics

6th Grade - Professional Development

10 Qs

WW34 CLL

WW34 CLL

Professional Development

10 Qs

IT AND TECHNOLOGY - 01

IT AND TECHNOLOGY - 01

Professional Development

10 Qs

React & JS - Day 5 - KEC

React & JS - Day 5 - KEC

Assessment

Quiz

Other

Professional Development

Hard

Created by

Raja SK

Used 2+ times

FREE Resource

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

const arr = [1,2,3]

const {a, b, c} = arr

console.log(a)

1

undefined

null

Error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you destructure an object in JavaScript?

const { name, age } = { person };

const { name, age } = person;

const { name: name, age: age } = person;

const [name, age] = person;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which React Hook is used to perform side effects in a functional component?

useState

useSideEffect

useEffect

useFetch

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What array method is used to remove the first element from an array?

pop()

shift()

slice()

unshift()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

const arr = [1,2,3]

const [a: x, b, c] = arr

console.log(x)

1

undefined

null

Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What array method is used to check if all elements in an array pass a certain condition?

verifyAll()

every()

checkAll()

all()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which React Hook is used to create a state variable in a functional component?

createState()

useState()

setState()

setName()

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?