15 State & Hooks questions from the React Native bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.
Free to start: the 2-minute IT readiness check — six questions and a result.
A.the hook that adds a piece of local mutable value to a function component and returns its current value plus a setter
B.the hook that runs side effects after render, controlled by a dependency array and optionally returning a cleanup function
C.the read-only inputs passed from a parent down to a child component to configure its appearance and behavior
D.the hook that memoizes a function identity across renders so it is not recreated, helping prevent needless child updates
Answer + AI explanation with Pro
2. Which term means: "the hook that adds a piece of local mutable value to a function component and returns its current value plus a setter"?
Junior
A.useEffect
B.useContext
C.useState
D.useCallback
Answer + AI explanation with Pro
3. Which statement is correct?
Junior
A.useState — the hook that adds a piece of local mutable value to a function component and returns its current value plus a setter
B.useState — the read-only inputs passed from a parent down to a child component to configure its appearance and behavior
C.useState — the hook that reads a shared value from a provider higher in the tree without threading it through every intermediate component
D.useState — the hook that runs side effects after render, controlled by a dependency array and optionally returning a cleanup function
Answer + AI explanation with Pro
4. What is useEffect?
Mid
A.the read-only inputs passed from a parent down to a child component to configure its appearance and behavior
B.the hook that memoizes a function identity across renders so it is not recreated, helping prevent needless child updates
C.the hook that reads a shared value from a provider higher in the tree without threading it through every intermediate component
D.the hook that runs side effects after render, controlled by a dependency array and optionally returning a cleanup function
Answer + AI explanation with Pro
5. Which term means: "the hook that runs side effects after render, controlled by a dependency array and optionally returning a cleanup function"?
Mid
A.useContext
B.props
C.useCallback
D.useEffect
Answer + AI explanation with Pro
6. Which statement is correct?
Mid
A.useEffect — the hook that reads a shared value from a provider higher in the tree without threading it through every intermediate component
B.useEffect — the hook that adds a piece of local mutable value to a function component and returns its current value plus a setter
C.useEffect — the hook that runs side effects after render, controlled by a dependency array and optionally returning a cleanup function
D.useEffect — the hook that memoizes a function identity across renders so it is not recreated, helping prevent needless child updates
Answer + AI explanation with Pro
7. What is props?
Junior
A.the hook that memoizes a function identity across renders so it is not recreated, helping prevent needless child updates
B.the read-only inputs passed from a parent down to a child component to configure its appearance and behavior
C.the hook that runs side effects after render, controlled by a dependency array and optionally returning a cleanup function
D.the hook that reads a shared value from a provider higher in the tree without threading it through every intermediate component
Answer + AI explanation with Pro
8. Which term means: "the read-only inputs passed from a parent down to a child component to configure its appearance and behavior"?
Junior
A.useEffect
B.props
C.useState
D.useContext
Answer + AI explanation with Pro
9. Which statement is correct?
Junior
A.props — the hook that memoizes a function identity across renders so it is not recreated, helping prevent needless child updates
B.props — the read-only inputs passed from a parent down to a child component to configure its appearance and behavior
C.props — the hook that runs side effects after render, controlled by a dependency array and optionally returning a cleanup function
D.props — the hook that adds a piece of local mutable value to a function component and returns its current value plus a setter
Answer + AI explanation with Pro
10. What is useContext?
Mid
A.the hook that runs side effects after render, controlled by a dependency array and optionally returning a cleanup function
B.the read-only inputs passed from a parent down to a child component to configure its appearance and behavior
C.the hook that adds a piece of local mutable value to a function component and returns its current value plus a setter
D.the hook that reads a shared value from a provider higher in the tree without threading it through every intermediate component
Answer + AI explanation with Pro
11. Which term means: "the hook that reads a shared value from a provider higher in the tree without threading it through every intermediate component"?
Mid
A.props
B.useCallback
C.useState
D.useContext
Answer + AI explanation with Pro
12. Which statement is correct?
Mid
A.useContext — the hook that adds a piece of local mutable value to a function component and returns its current value plus a setter
B.useContext — the hook that reads a shared value from a provider higher in the tree without threading it through every intermediate component
C.useContext — the hook that memoizes a function identity across renders so it is not recreated, helping prevent needless child updates
D.useContext — the hook that runs side effects after render, controlled by a dependency array and optionally returning a cleanup function
Answer + AI explanation with Pro
13. What is useCallback?
Senior
A.the hook that runs side effects after render, controlled by a dependency array and optionally returning a cleanup function
B.the hook that memoizes a function identity across renders so it is not recreated, helping prevent needless child updates
C.the read-only inputs passed from a parent down to a child component to configure its appearance and behavior
D.the hook that reads a shared value from a provider higher in the tree without threading it through every intermediate component
Answer + AI explanation with Pro
14. Which term means: "the hook that memoizes a function identity across renders so it is not recreated, helping prevent needless child updates"?
Senior
A.useState
B.useCallback
C.useEffect
D.useContext
Answer + AI explanation with Pro
15. Which statement is correct?
Senior
A.useCallback — the hook that adds a piece of local mutable value to a function component and returns its current value plus a setter
B.useCallback — the hook that memoizes a function identity across renders so it is not recreated, helping prevent needless child updates
C.useCallback — the hook that reads a shared value from a provider higher in the tree without threading it through every intermediate component
D.useCallback — the hook that runs side effects after render, controlled by a dependency array and optionally returning a cleanup function
Answer + AI explanation with Pro
Free to start
Start with a free readiness check
Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every State & Hooks question come with Pro.