--:--









Quiz for Passing Props

Course: REACT | Subject: React | Topic: Props and State Management



Logo

Q1: What are props in React?

Logo

Q2: How are props passed to a component?

Logo

Q3: Which keyword is used to access props in a class component?

Logo

Q4: Can a child component modify its props?

Logo

Q5: How to validate props in a functional component?

Logo

Q6: What happens if a required prop is not provided?

Logo

Q7: Which statement about props is true?

Logo

Q8: Which hook can be used to memoize props-dependent logic?

Logo

Q9: Which is a correct way to pass a prop to a component?

Logo

Q10: Which lifecycle method is used to receive props changes in class components?

Logo

Q11: What is the default value of props if not passed?

Logo

Q12: What tool can you use to enforce type checking on props?

Logo

Q13: Props help in:

Logo

Q14: What happens if props are changed in parent component?

Logo

Q15: In functional components, props are received as:

Logo

Q16: How can you set default values for props?

Logo

Q17: Which is correct about read-only nature of props?

Logo

Q18: What is the purpose of destructuring props?

Logo

Q19: What is the correct syntax to destructure props?

Logo

Q20: Which is a valid use case for props?

Are you ready to start test? Set your time limit