State & Hooks interview questions

15 real State & Hooks questions from the React Native bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

1. What is useState?

Junior
  1. A.the hook that adds a piece of local mutable value to a function component and returns its current value plus a setter
  2. B.the hook that runs side effects after render, controlled by a dependency array and optionally returning a cleanup function
  3. C.the read-only inputs passed from a parent down to a child component to configure its appearance and behavior
  4. D.the hook that memoizes a function identity across renders so it is not recreated, helping prevent needless child updates
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. A.useState — the hook that adds a piece of local mutable value to a function component and returns its current value plus a setter
  2. B.useState — the read-only inputs passed from a parent down to a child component to configure its appearance and behavior
  3. C.useState — the hook that reads a shared value from a provider higher in the tree without threading it through every intermediate component
  4. D.useState — the hook that runs side effects after render, controlled by a dependency array and optionally returning a cleanup function
Reveal the answer + AI explanation — free account

4. What is useEffect?

Mid
  1. A.the read-only inputs passed from a parent down to a child component to configure its appearance and behavior
  2. B.the hook that memoizes a function identity across renders so it is not recreated, helping prevent needless child updates
  3. C.the hook that reads a shared value from a provider higher in the tree without threading it through every intermediate component
  4. D.the hook that runs side effects after render, controlled by a dependency array and optionally returning a cleanup function
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Mid
  1. A.useEffect — the hook that reads a shared value from a provider higher in the tree without threading it through every intermediate component
  2. B.useEffect — the hook that adds a piece of local mutable value to a function component and returns its current value plus a setter
  3. C.useEffect — the hook that runs side effects after render, controlled by a dependency array and optionally returning a cleanup function
  4. D.useEffect — the hook that memoizes a function identity across renders so it is not recreated, helping prevent needless child updates
Reveal the answer + AI explanation — free account

7. What is props?

Junior
  1. A.the hook that memoizes a function identity across renders so it is not recreated, helping prevent needless child updates
  2. B.the read-only inputs passed from a parent down to a child component to configure its appearance and behavior
  3. C.the hook that runs side effects after render, controlled by a dependency array and optionally returning a cleanup function
  4. D.the hook that reads a shared value from a provider higher in the tree without threading it through every intermediate component
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Junior
  1. A.props — the hook that memoizes a function identity across renders so it is not recreated, helping prevent needless child updates
  2. B.props — the read-only inputs passed from a parent down to a child component to configure its appearance and behavior
  3. C.props — the hook that runs side effects after render, controlled by a dependency array and optionally returning a cleanup function
  4. D.props — the hook that adds a piece of local mutable value to a function component and returns its current value plus a setter
Reveal the answer + AI explanation — free account

10. What is useContext?

Mid
  1. A.the hook that runs side effects after render, controlled by a dependency array and optionally returning a cleanup function
  2. B.the read-only inputs passed from a parent down to a child component to configure its appearance and behavior
  3. C.the hook that adds a piece of local mutable value to a function component and returns its current value plus a setter
  4. D.the hook that reads a shared value from a provider higher in the tree without threading it through every intermediate component
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Mid
  1. A.useContext — the hook that adds a piece of local mutable value to a function component and returns its current value plus a setter
  2. B.useContext — the hook that reads a shared value from a provider higher in the tree without threading it through every intermediate component
  3. C.useContext — the hook that memoizes a function identity across renders so it is not recreated, helping prevent needless child updates
  4. D.useContext — the hook that runs side effects after render, controlled by a dependency array and optionally returning a cleanup function
Reveal the answer + AI explanation — free account

13. What is useCallback?

Senior
  1. A.the hook that runs side effects after render, controlled by a dependency array and optionally returning a cleanup function
  2. B.the hook that memoizes a function identity across renders so it is not recreated, helping prevent needless child updates
  3. C.the read-only inputs passed from a parent down to a child component to configure its appearance and behavior
  4. D.the hook that reads a shared value from a provider higher in the tree without threading it through every intermediate component
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Senior
  1. A.useCallback — the hook that adds a piece of local mutable value to a function component and returns its current value plus a setter
  2. B.useCallback — the hook that memoizes a function identity across renders so it is not recreated, helping prevent needless child updates
  3. C.useCallback — the hook that reads a shared value from a provider higher in the tree without threading it through every intermediate component
  4. D.useCallback — the hook that runs side effects after render, controlled by a dependency array and optionally returning a cleanup function
Reveal the answer + AI explanation — free account

Free to start

Answers, AI explanations, and a scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice State & Hooks free