Loading

Quipoin Menu

Learn • Practice • Grow

react / Redux Actions and Reducers
mcq
Direction: Choose the correct option

Q1.

What is the typical structure of a Redux action?
A. A function
B. A string
C. An object with a 'type' property and optional payload
D. A class instance
Direction: Choose the correct option

Q2.

How do you create an action creator?
A. A function that returns an action object
B. A function that dispatches an action
C. A constant string
D. A reducer
Direction: Choose the correct option

Q3.

In a reducer, why must you not mutate the state?
A. Mutation is allowed
B. Because state is read-only
C. To improve performance
D. Redux relies on immutability to detect changes
Direction: Choose the correct option

Q4.

What should a reducer return if it doesn't recognize the action type?
A. undefined
C. The current state
D. A new state
Direction: Choose the correct option

Q5.

How can you combine multiple reducers?
A. Using combineReducers from Redux
B. Using combineStores
C. Using mergeReducers
D. Using a single reducer