React Js Online Test

Instructions:

  • This practice test has 20 questions
  • You have to attempt all the questions
  • Time will be 05:00 minute for 20 questions. After 05:00 minute, practice test will be submitted automatically and you will redirect to result page.
  • This practice test is for self evalutation, if you get less marks then passing marks. Please prepare more for get excellent mark next time
  • Best of luck :)
Time: 05:00 minutes Passing Marks: 60%

1. What is the recommended naming convention for React component files?

2. What is the purpose of the ternary conditional operator (? :) in conditional rendering?

3. What is the primary purpose of making HTTP requests in a React application?

4. What is AWS Lambda, and how is it commonly used with React?

5. How can you access device features like the camera or GPS in a React Native app?

6. What is the primary difference between componentWillReceiveProps and static getDerivedStateFromProps?

7. In React, how can you update the component's state?

8. In React, what is the recommended approach for rendering a list of elements conditionally?

9. In a functional component, how do you update the state variable declared with the useState Hook?

10. In React, how do you add CSS classes to components using JSX?

11. How do you render one component if a condition is true and another component if it's false in React?

12. What is the recommended way to pass data from a parent component to a child component in React?

13. What is the primary advantage of deploying a React application using a Content Delivery Network (CDN)?

14. In React, what does the defaultValue prop do when used with an input element?

15. In React, how can you include one component within another component's JSX?

16. What is a common method for optimizing images in a React application before deployment?

17. In React, how do you conditionally apply styles to components based on component state or props?

18. What is the recommended way to control the rendering of child components in React?

19. In a functional component, how do you manage state using React Hooks?

20. Which CSS preprocessor is often used in combination with React for enhanced styling capabilities?