MCQ on REACTJS Vol1
What is the primary reason for using the 'Virtual DOM' in React?
Which React hook is intended to handle side effects such as data fetching or subscriptions?
In React, what is the 'key' prop used for when rendering lists?
What is 'JSX' in the context of React development?
How can you pass data from a parent component down to a child component?
What does the 'useCallback' hook return?
What is the correct way to update state in a functional component using 'useState'?
What is the purpose of 'React.Fragment'?
Which hook provides an alternative to 'useState' for complex state logic?
What happens if you omit the dependency array in 'useEffect'?
What is 'Prop Drilling'?
What is the purpose of 'useRef'?
Which of these is a Rule of Hooks?
What does 'React.memo' do?
How do you handle a click event in a React component?
What is the 'Context API' primarily used for?
Which method is used to create a context object?
What does it mean for a component to be 'Controlled' in React forms?
What is the purpose of 'useLayoutEffect'?
In React, what does 'Lifting State Up' refer to?
Ans
1. A
2. B
3. A
4.A
5.B
6.A
7.C
8.C
9.B
10.D
11.B
12.B
13.B
14.C
15.C
16.B
17.B
18.B
19.B
20.A
No comments:
Post a Comment