React Js - Honors IV Sem Full Stack-I

React Js - Honors IV Sem Full Stack-I

1 / 20

Which of the following is NOT a built-in React Hook?

2 / 20

Which of the following is NOT a valid React Hook?

3 / 20

How do you update state in a function component?

4 / 20

What is the default behavior of React when the state changes?

5 / 20

What is the default behavior of useEffect without a dependency array?

6 / 20

What is the best practice for handling API calls in a function component?

7 / 20

Which hook is used to manage state in a functional component?

8 / 20

How can you optimize performance in React applications?

9 / 20

What is the purpose of the key prop in React lists?

10 / 20

What is the correct way to use useEffect with a cleanup function?

11 / 20

What is a functional component in React?

12 / 20

How do you use state in a function component?

13 / 20

What happens if you update state inside useEffect without dependencies?

14 / 20

What is the correct way to handle multiple states in a component?

15 / 20

Which hook is used for global state management instead of useState?

16 / 20

How does React handle reconciliation?

17 / 20

What does the useEffect hook do?

18 / 20

What is JSX in React?

19 / 20

How do you create a functional component in React?

20 / 20

What is React.js?

Your score is

The average score is 86%

0%