State & Hooks interview questions

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.

Take the free IT readiness check

or take a mock interview set up for this area

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

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
  1. A.useEffect
  2. B.useContext
  3. C.useState
  4. D.useCallback

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

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
  1. A.useContext
  2. B.props
  3. C.useCallback
  4. D.useEffect

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

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
  1. A.useEffect
  2. B.props
  3. C.useState
  4. D.useContext

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

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
  1. A.props
  2. B.useCallback
  3. C.useState
  4. D.useContext

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

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
  1. A.useState
  2. B.useCallback
  3. C.useEffect
  4. D.useContext

Answer + AI explanation with Pro

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

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.

Take the free IT readiness check

or take a mock interview set up for this area

24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers