Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.

Unit 6 MCQs Redux, Debugging and Deployment

INT252 — Web App Development With Reactjs 50 questions. Pick an option to check it.

Read the notes

0 of 50 answered 0 right 0 wrong , 50 left

  1. Question 1 of 50

    What is Redux primarily used for in a React application?

  2. Question 2 of 50

    Which of the following is NOT one of the three fundamental principles of Redux?

  3. Question 3 of 50

    In Redux, what is the 'Store'?

  4. Question 4 of 50

    What is the purpose of a 'Reducer' in Redux?

  5. Question 5 of 50

    What is the only way to change the state inside a Redux store?

  6. Question 6 of 50

    What is an 'Action' in Redux?

  7. Question 7 of 50

    Which property is mandatory in a Redux Action object?

  8. Question 8 of 50

    Which library is commonly used to bind Redux with React?

  9. Question 9 of 50

    What is the purpose of the <Provider> component in react-redux?

  10. Question 10 of 50

    Which prop must be passed to the <Provider> component?

  11. Question 11 of 50

    What is the correct signature of a Reducer function?

  12. Question 12 of 50

    Why must Reducers be 'pure functions'?

  13. Question 13 of 50

    Which method is used to send an action to the store?

  14. Question 14 of 50

    What is an 'Action Creator'?

  15. Question 15 of 50

    In the connect function connect(mapStateToProps, mapDispatchToProps)(MyComponent), what is the purpose of mapStateToProps?

  16. Question 16 of 50

    Which React-Redux hook is synonymous with mapStateToProps?

  17. Question 17 of 50

    Which React-Redux hook is used to dispatch actions?

  18. Question 18 of 50

    What is the typical initial value of the state in a Reducer?

  19. Question 19 of 50

    What function is used to combine multiple reducers into a single root reducer?

  20. Question 20 of 50

    In the Redux flow, what happens immediately after an action is dispatched?

  21. Question 21 of 50

    What should a reducer return if it receives an action type it does not handle?

  22. Question 22 of 50

    Which statement regarding Redux state immutability is true?

  23. Question 23 of 50

    What is the 'payload' in an action?

  24. Question 24 of 50

    Which tool is widely used for debugging Redux applications in the browser?

  25. Question 25 of 50

    What is 'Time Travel Debugging' in Redux?

  26. Question 26 of 50

    Which npm command is typically used to build a React app for production?

  27. Question 27 of 50

    What is the main advantage of the 'production build' of a React app?

  28. Question 28 of 50

    Where are the production files typically stored after running the build command?

  29. Question 29 of 50

    What is a 'store subscriber'?

  30. Question 30 of 50

    When debugging a React app, what does 'Source Map' allow you to do?

  31. Question 31 of 50

    In mapDispatchToProps, if the argument is an object of action creators, what does connect do automatically?

  32. Question 32 of 50

    What is the file 'index.js' (or main.jsx) typically used for in a Redux setup?

  33. Question 33 of 50

    What is 'Redux Middleware'?

  34. Question 34 of 50

    Which of the following is a common middleware used for async actions in Redux?

  35. Question 35 of 50

    If a React app crashes in production, which React feature can display a fallback UI instead of the crash?

  36. Question 36 of 50

    What does process.env.NODE_ENV usually return in a production build?

  37. Question 37 of 50

    When connecting a component, what happens if you pass null instead of mapStateToProps?

  38. Question 38 of 50

    What is the purpose of bindActionCreators?

  39. Question 39 of 50

    Which folder in a standard React structure usually contains Redux logic?

  40. Question 40 of 50

    Why is using console.log for debugging sometimes inefficient in Redux?

  41. Question 41 of 50

    In the Flux architecture (which Redux simplifies), flow is always:

  42. Question 42 of 50

    How can you access the Redux store directly (though not recommended for UI rendering) outside of a component?

  43. Question 43 of 50

    What is 'Hot Module Replacement' (HMR) helpful for?

  44. Question 44 of 50

    Which method allows you to unsubscribe a listener from the store?

  45. Question 45 of 50

    When preparing for deployment, what is 'minification'?

  46. Question 46 of 50

    Which hook would you use to perform a side-effect (like data fetching) in a functional component before dispatching an action?

  47. Question 47 of 50

    What is the concept of 'Single Source of Truth' in Redux?

  48. Question 48 of 50

    If you want to deploy your React app to a static host (like GitHub Pages or Netlify), what is the primary requirement?

  49. Question 49 of 50

    What is the role of redux-logger?

  50. Question 50 of 50

    Why shouldn't you mutate state directly (e.g., state.value++) in Redux?

That's unit 6

Answer a few questions and your score shows up here.