Redux State Management MCQs Solution | TCS Fresco Play | Fresco Play | MNC Answers
Make an effort to understand these solutions and apply them to your Hands-On difficulties. (It is not advisable that copy and paste these solutions).
All Question of the MCQs Present Below for Ease Use Ctrl + F with the question name to find the Question. All the Best!
1. Which of the following is not an implementation of Flux?
Fluxit
2. Modularity in Redux is achieved through ________________
Reducers
3. In Redux, state variables and objects are never mutated. Instead, new ones are produced.
True
4. The function random() produces a new random number between 0 and 1 every time you run it. Is this a pure function?
False
5. Data flow in Redux is:
Uni-Directional
6. Which of the following is not true about Pure Functions
Can make API calls
7. In Redux Action Types have to be defined as Strings
True
8. Which of the following Action Objects are syntactically correct?
{ type: 'ADD_TODO', text }
9. Actions in Redux
Send data to Store
10. Which of the following functions can be used to dispatch actions in Redux?
All the options mentioned
11. Action Creators in Redux
All the options mentioned
12. What is the input for the dispatch function?
Action Object
13. Following function is a __________?
(previousState, action) => newState
Reducer
14. createStore is a function to be imported from ____________
Redux
15. Which of the following statements about Reducers is not true?
Can make API calls
16. combineReducers aggregates the output of reducers into a single object representing application state.
True
17. Which of the following can be done in a Reducer?
Perform Calculations
18. Presentational components of React are connected to the container components of React.
True
19. State Changes in Redux are stored in such a way that _____________
State changes are stored as new state with references to old state for unchanged sections of the state tree.
20. Which of the following can be done inside a reducer?
Call a pure function
21. What is the helper function that Redux provides for making root reducer?
CombineReducer()
22. Redux bindings to React are to be imported from ____________.
ReactRedux
23. How to access Redux state from store?
getState()
24. One can deregister listeners on store by calling function returned by _______________.
subscribe(listner)
26. Which of the following statements about Redux is not true?
Changes are initiated through Actions -- Wrong
27. Which of the following is not api of redux library
connect()
28. React bindings for Redux are enabled by default.
False
29. Which of the following is a signature of a reducer function?
function name(state, action)
30. How can initial state be passed to store the, using the createStore function?
Pass it as second aurgument
31. The function double is defined as below. Is this a pure function?
const double = x => x * 2;
True
32. How is the context of store passed to React components?
Using Provider
33. Redux applications follow _____________________
Functional Programming
34. What are middleware used for?
To create new dispatch function
35. How to register for listeners on store?
subscribe(listener)
36. Redux can be used with React, AngularJS, BackboneJS and many others.
True
37. Which components take care of connecting to Redux store for data fetching and state updates?
Container
38. How do you bind action creators with dispatch function?
bindActionCreators
Post a Comment