React JS Quiz April 18, 2020 Padhmanaban 1. What are the different way to pass a props into the React.Component? defaultProps Parent Component setState() propTypes 2. const { blogger, programmer } = profile? Destructuring Assignment Spread Operator Default Assignment Array Destructuring 3. What type of diffing algorithm, React using to find the difference between Actual and in-memory DOM while "state"change/update? Evolutionary Simulation Optimization Heuristic Memetic 4. Which of the following Lifecycle phase are externally controlled by ReactDOM? Updating UnMounting Catching Mounting 5. What kind of error types are not caught by Error Boundaries? Constructor Lifecycle Methods Event Handler Rendering 6. Which of the following "Events" are dependent on the browser specification in React? Wheel Events Transition Events Touch Events Pointer Event 7. In React, what this.setState() method will return? Void Object Boolean Array 8. Which of the following are parts of "propType" validation? PropTypes.undefined PropTypes.func PropTypes.int PropTypes.array 9. In stateless functional components, are we able to specify "propTypes" & "defaultProps" as a property on the function? Yes No 10. Which of the tools allow you to test React Application? React Testing Library Jest Mocha Jasmine 11. Which of the following are basic features of the react library? propTypes Validation Server-side Rendering Virtual-DOM Declarative Paradigm Time is Up! Time's up