React MCQs – Multiple Choice Questions and Answers – Part 1
Multiple choice questions and answers (MCQs) on React to prepare for exams, tests, and certifications. These questions are taken from a real written exam and some parts are taken from an interview. So you will find questions on basic techniques such as UI, DOM, services, JSX, and more. This quiz will easily prepare anyone to pass their online test.
1. React is a ________
A JavaScript library
B JavaScript framework
C Both A and B are true.
D None of the above
2. ReactJS covers the _________
A User interface (UI) layer in an application
B Data layer in an application
C Both A and B are true.
D None of the above
3. ReactJS uses _____ to increase performance
A Virtual DOM
B Real DOM
C Both A and B are true.
D None of the above
4. React is based on _______
A Modules
B Services
C Components
D Microservices
5. In which directory are the React JS components stored?
A js/components/
B vendor/components/
C external/components/
D vendor/
6. How many elements does a React component return?
A 1 element
B 2 elements
C Many elements
D None of the above
7. What are the limits of ReactJS?
A React is only for the View layer of the app, so we still need the help of other technologies to get a full set of tools for development.
B React uses inline and JSX templates. It may seem annoying for some developers
C React library is too large
D All the answers are true
8. How to access the state of a component inside a member function?
A this.getState()
B this.prototype.stateValue
C this.state
D this.values
9. Props are __________ in other components
A Injected
B methods
C Both A and B are true.
D None of the above
10. State in react is a ________
A Permanent storage
B Internal component storage
C Both A and B are true.
D None of the above