React JS Multiple Choice Interview Questions (MCQ) - Test Your React JS Knowledge
React JS Multiple Choice Interview Questions (MCQ) - Test Your React JS Knowledge
com
React JS Multiple choice interview questions (MCQ) - Test your
React JS knowledge
A. Javascript framework
B. Javascript library
C. Javascript file
D. None of the Above
A. Virtual DOM
B. Original DOM
C. Local DOM
D. None of the Above
A. Module based
B. Component based
C. System based
D. All are Correct
A. 1
B. 2
C. 3
D. None of the Above
Q6. For controlled components in react
A. 1
B. 2
C. 3
D. 5
A. Javascript library
B. Javascript framework
C. Both of above
D. None of above
Q10. Which of the following API is a MUST for every ReactJS component?
A. getInitialState
B. render
C. renderComponent
D. None
Q11. How can you access the state of a component from inside of a member function?
A. this.getState()
B. this.state
C. this.prototype.stateValue
D. this.values
Q12. What is a good use case for using a function while rendering a dynamic list of
items
A. Virtual DOM
B. Original DOM
C. Both of above
D. None of above
A. 3000
B. 8080
C. 3306
D. 8809
A. Google
B. Microsoft
C. Facebook
D. None of above
Q18. What are the limitations of ReactJS?
A. React is only for view layer of the app so we still need the help of other technologies to get a
complete tooling set for development
B. React is using inline templating and JSX. This can seem awkward to some developers
C. The library of react is too large
D. All of these
A. 1
B. 2
C. 3
D. 0
A. set state
B. render with argument
C. props
D. propTypes
Q22. Ref in react component is used to assign reference to DOM elements. Ref can be
created by
A. module
B. component
C. package
D. class
A. 1
B. 0
C. Multiple elements with one root element
D. None of the above
A. A persistent storage
B. An internal data store (object) of component
C. Both
D. None
Q26. The state in react can be updated by call to setState method. These calls are
A. Synchronous in nature
B. Asynchronous in nature
C. Are asynchronous but can be made synchronous when required
D. None of above
Q27. Keys are given to a list of elements in react. These keys should be
A. setState
B. forceUpdate
C. Both of above
D. None of above
Q30. What will happen if you render an input element with disabled = {false}