Welcome to the React Final Quiz. This quiz reviews the important
concepts covered throughout the React tutorial, including JSX, components,
props, state, hooks, forms, React Router, APIs, authentication, styling,
performance, and best practices.
Instructions:
Read each question carefully and select the correct answer. After completing
the quiz, click Submit Final Quiz to see your score.
1. What is React?
2. Which syntax is used to write HTML-like markup in React?
3. Which attribute is used instead of class in JSX?
4. What is a React component?
5. What are props mainly used for?
6. Which Hook is used to manage state in a functional component?
7. What does useEffect mainly handle?
8. Which Hook can reference a DOM element?
9. Which Hook reads values from React Context?
10. What does dispatch do with useReducer?
11. Which method is commonly used to render an array as React elements?
12. Why are keys used when rendering lists?
13. Which event is commonly used for a button click?
14. Which event is commonly used when a form is submitted?
15. Which operator is commonly used for conditional rendering when content should appear only when a condition is true?
16. What is a controlled component?
17. Which package is commonly used for React Router?
18. Which component defines a route in React Router?
19. Which Hook reads dynamic URL parameters?
20. Which component displays child routes in a nested route layout?
21. Which function is commonly used to make HTTP requests without an additional library?
22. What is commonly used to convert a JSON response into a JavaScript object?
23. Which command installs Axios?
24. Which browser storage remains available after the browser is closed?
25. What is the main purpose of authentication?
26. Which component is commonly used to redirect an unauthenticated user?
27. Which CSS framework uses a utility-first approach?
28. Which Hook memoizes the result of a calculation?
29. Which is a good React best practice?
30. Which React feature is commonly used to manage changing data in a mini project?