React & JS - Day 5 - KEC

React & JS - Day 5 - KEC

Professional Development

12 Qs

quiz-placeholder

Similar activities

basic of robotics

basic of robotics

6th Grade - Professional Development

10 Qs

Frontend Development Quiz

Frontend Development Quiz

Professional Development

10 Qs

JS Loops

JS Loops

Professional Development

12 Qs

Numpy and pandas

Numpy and pandas

Professional Development

9 Qs

Henry M2

Henry M2

Professional Development

10 Qs

JavaScript Arrays and Objects

JavaScript Arrays and Objects

Professional Development

14 Qs

PHP Quiz

PHP Quiz

Professional Development

10 Qs

Numpy

Numpy

Professional Development

15 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?