Correct Answer: Orange && Worng Answer: Red
1. Which of the following is used in React.js to increase performance?
View Answer
Explanation: Virtual DOM is used in React.js to increase performance.
2. What is ReactJS?
View Answer
Explanation: ReactJS is a user-interface framework.
3. Identify the one which is used to pass data to components from outside
View Answer
Explanation: props are used to pass data to components from outside.
4. Who created React.js?
View Answer
Explanation: Jordan Walke created React.js.
5. In which language is React.js written?
View Answer
Explanation: React.js is written in Javascript.
6. What is Babel?
View Answer
Explanation: Devil is a JavaScript compiler.
7. Identify the command used to create a react app.
View Answer
Explanation: npm install -g create-react-app is used to create a react app.
8. Which of the following port is the default where webpack-dev-server runs?
View Answer
Explanation: 8080 is the default where webpack-dev-server runs.
9. How many elements can a valid react component return?
View Answer
Explanation: A valid red component can return only 1 element.
10. A state in React.js is also known as?
View Answer
Explanation: A state in React.js is also known as the internal storage of the component.
11. Which of the following method is used to access the state of a component from inside of a member function?
View Answer
Explanation: this.values is used to access the state of a component from inside of a member function.
12. State whether true or false: Props are methods into other components?
View Answer
Explanation: The above statement is True.
13. What are arbitrary inputs of components in react also known as?
View Answer
Explanation: Arbitrary inputs of components in react also known as Props.
14. In MVC, what does React.js act as?
View Answer
Explanation: In MVC, React.js act as Controller.
15. State whether true or false: React.js covers only the view layer of the app.
View Answer
Explanation: The above statement is true.
16. Among The following options, choose the one which helps react for keeping their data uni-directional?
View Answer
Explanation: FLux helps react for keeping their data uni-directional.
17. Using which of the following command can prevent default behaviour at in react?
View Answer
Explanation: preventDefault() is used to prevent default behavior in react.
18. Identify the smallest building block of React.JS.
View Answer
Explanation: Components are the smallest building blocks of ReactJS.
19. What is ReactJS mainly used for building?
View Answer
Explanation: ReactJS is mainly used for building user interfaces.
20. Which of the following function is used to change the state of react component?
View Answer
Explanation: this.setState() is used to change the state of react component.
Categories
C Programming MCQsC++ Programming MCQsJAVA MCQsVisual Basic MCQsData Structure MCQsSoftware Package MCQsComputer Organization and Architecture MCQsOperating System MCQsDigital Electronics MCQsDBMS MCQsSystem Analysis and Management Information System MCQsSystem Maintenance MCQsData Communication and Networking MCQsInternet & Web Technology MCQsSoftware Engineering MCQsManagement (Common) MCQsSystem Software MCQsComputer Graphics MCQsArtificial Intelligence & Expert System MCQsE-Commerce MCQsMultimedia MCQsPower Electronics MCQsTesting & Maintenance Electrical Machine MCQsAutomatic Control System MCQsAdvance Communication System MCQsDigital Electronics MCQs