Home > Web Development > Quizzes > ReactJS Practice Test 2
ReactJS Practice Test 2
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 79% Most missed: “Which ReactJS function renders HTML to the web page?”

Related: ReactJS Practice Test 1

ReactJS Practice Test 2
Time left 00:00
25 Questions

1. What is the correct syntax to write expression in JSX?
2. How many types of the components in ReactJS?
3. Consider the below statement – Which method will be used at the place of blank space (____)?
class MainTitle extends React.Component {renderDOM()
4. Consider the below function – which is the correct syntax of arrow function?
Msg = function() {Msg = () => {return 'Good Morning';}
5. In ES6 – The class properties are assigned inside a _____ method.
6. In ES6 – What is the correct syntax of class inheritance?
7. In ES6 – Which keyword is used for class inheritance?
8. Which method is used to generate lists?
9. Which statement is required to define a class component?
10. In ReactJS, what is State?
11. A class component must include the _______ statement.
12. Which ReactJS command is used to set up everything you need to run a React Application?
13. How to install create-react-app?
14. Which ReactJS command is used to create a new application?
15. Which is the correct arrow function to add two numbers?
16. In ES6 – Which method refers to the parent class?
17. In ES6 – Why arrow functions are used?
18. What does props stand for?
19. In ES6 – let has a block scope.
20. In ES6 – Which keyword is used to initiate a class?
21. What is the default port where webpack-server runs?
22. In ES6 – Which keyword is used to define a constant?
23. With an arrow function – this keyword represents _____.
24. Which is used to pass data to components from outside?
25. JSX allows us to write _____.