--:--









Quiz for Functional Components

Course: REACT | Subject: React | Topic: Components



Logo

Q1: What is a functional component in React?

Logo

Q2: Which hook is used for adding state in functional components?

Logo

Q3: Which syntax correctly defines a functional component?

Logo

Q4: How is JSX returned in a functional component?

Logo

Q5: Which React version introduced hooks for functional components?

Logo

Q6: Are functional components pure functions?

Logo

Q7: Can functional components manage lifecycle?

Logo

Q8: Which of the following is a valid React Hook?

Logo

Q9: Which of these is a benefit of functional components?

Logo

Q10: What do functional components not have?

Logo

Q11: How are props accessed in functional components?

Logo

Q12: What is required to render multiple elements in React functional components?

Logo

Q13: What does the useEffect hook replace?

Logo

Q14: Are functional components stateless only?

Logo

Q15: What is the main input of a functional component?

Logo

Q16: Can you memoize functional components?

Logo

Q17: What will happen if a component returns null?

Logo

Q18: Which is a correct way to import useState?

Logo

Q19: Which keyword is not used in functional components?

Logo

Q20: What happens if you miss return in functional component?

Are you ready to start test? Set your time limit