1. Which of the following makes a reducer a pure function?
A pure function always returns the same output for the same input and has no side effects like API calls, random number generation, or date/time dependencies. Redux reducers must be pure functions because this predictability is essential for debugging, testing, and features like time-travel. Any side effects should be handled in middleware like Redux Thunk or Redux Saga.