
React & JS - Day 5 - KEC

Quiz
•
Other
•
Professional Development
•
Hard
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
Similar Resources on Wayground
10 questions
Traffic Control: Chapter 11

Quiz
•
Professional Development
17 questions
Mastering Arrays in Go

Quiz
•
Professional Development
15 questions
Orkm 24A

Quiz
•
Professional Development
12 questions
Mastering HTML, CSS, and JavaScript

Quiz
•
Professional Development
14 questions
math

Quiz
•
Professional Development
11 questions
PySpark Quiz Round

Quiz
•
Professional Development
10 questions
basic of robotics

Quiz
•
6th Grade - Professio...
10 questions
IT AND TECHNOLOGY - 01

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade