React Questions March 16, 2023 | No Comments 0 votes, 0 avg 85 123456789101112131415 React Questions 1 / 15 1. When rendering a list using the JavaScript map() method, what is required for each element rendered? A. id B. key C. data D. index 2 / 15 2. Regarding JSX attributes, Which of the following statement is true? A. Attribute names can be used in CAML case B. Attribute names can be used in Sentence case C. Any case can be used it does not matter like html D. none of these 3 / 15 3. What is the children prop? A. A property that lets you pass data to child components B. A property that lets you set an object as a property C. A property that lets you nest components in other components D. A property that adds child values to state 4 / 15 4. Which of the following command is used to Install create-react-app? A. npm install create-react-app B. npm install -f create-react-app C. npm install -g create-react-app D. install -g create-react-app 5 / 15 5. Which of the following is must for the API in React.js ? A. SetinitialComponent B. renderComponent C. render D. none of these 6 / 15 6. Who Develop React.js? A. Google B. facebook C. Apple D. HCL 7 / 15 7. React Js is ______based architecture approach A. Module B. component C. package D. class 8 / 15 8. How many ways of defining your variables in ES6? A. 3 B. 1 C. 4 D. 2 9 / 15 9. In React.js which one of the following is used to create a class for Inheritance A. Create B. Extends C. Inherits D. Delete 10 / 15 10. As soon as the state of react component is changed, component will A. Does nothing,you have to call render method to render the component again B. re-render the component C. be created again from scratch D. none of these 11 / 15 11. What will be the output of the following code? import React, { Component } from 'react'; const App = () => { return( < div > < h1 className = "hello" > {25+20}< /h1 > < /div > ); } export default App; A. 25 B. 45 C. 35 D. none of these 12 / 15 12. Which of the following method refers to the parent class in React.js? A. self() B. super() C. this() D. static() 13 / 15 13. Why React is faster then normal websites? A. it does not use any DOM B. It uses Original DOM C. it uses Virtual DOM D. none of these 14 / 15 14. What is the default local host port that a React development server uses? A. 3000 B. 3500 C. 5000 D. 8080 15 / 15 15. What is React.js? A. Open-source JavaScript back-end library B. JavaScript front-end library to create a database C. Free and open-source JavaScript front-end library D. None of the mentioned Your score is The average score is 40% LinkedIn Facebook Twitter VKontakte 0% Restart quiz Questions, Quiz