Skip to content

Module quiz: Data and state :React Basics (Meta React Native Specialization) Answers 2025

1. Data in React flows one way (parent → child).

✔️ True
❌ False


2. Why is one-way data flow important?

✔️ It ensures data flows from top to bottom in the component hierarchy.
❌ Bottom to top


3. State data can be mutated by the component itself.

✔️ True
❌ False


4. What is prop drilling?

✔️ Passing data parent → child → grandchild → deeper levels
❌ Passing child → parent → grandparent


5. Stateless components don’t have their own state.

✔️ True
❌ False


6. Correct statement about props:

✔️ Props are immutable — children must not change them.
❌ Props are mutable


7. Is this React code valid (handler passed correctly)?

✔️ Yes
❌ No


8. Is this code valid (inline arrow function)?

✔️ Yes
❌ No


9. Select the correct statement about useState:

✔️ It lets you hook into React state and lifecycle features.
❌ Not part of React
❌ Must name updater counterFunction
❌ Should never be called at top level


10. Context API allows you to…

✔️ Avoid passing state through multiple component levels (avoid prop drilling).
❌ Avoid return statement
❌ Avoid modular components


📘 Summary Table

Q Correct Answer
1 True
2 Top → bottom data flow
3 True
4 Passing data down multiple component levels
5 True
6 Props are immutable
7 Yes
8 Yes
9 useState hooks into state/lifecycle
10 Avoid prop drilling with Context API