Loading

Quipoin Menu

Learn • Practice • Grow

react / React-Redux Hooks
mcq
Direction: Choose the correct option

Q1.

Which hook is used to read data from the Redux store in a functional component?
A. useDispatch
B. useSelector
C. useRedux
D. useStore
Direction: Choose the correct option

Q2.

What does the useDispatch hook return?
A. The dispatch function
B. The current state
C. A reference to the store
D. An action creator
Direction: Choose the correct option

Q3.

How do you dispatch an action using useDispatch?
A. const dispatch = useDispatch(); dispatch(actionCreator())
B. useDispatch(action)
C. dispatch(action)
D. useDispatch().dispatch(action)
Direction: Choose the correct option

Q4.

When does the component using useSelector re-render?
A. Whenever any state changes
B. Never
C. Whenever the selected value changes
D. Whenever the store updates
Direction: Choose the correct option

Q5.

Can you use multiple useSelector calls in one component?
A. Yes, you can call useSelector multiple times
B. Yes, but they must be combined
C. No, use one selector
D. No, only one per component