Lifecycle interview questions

12 Lifecycle questions from the Flutter 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 initState?

Junior
  1. A.the State callback fired after initState and whenever an inherited dependency this object relies on changes
  2. B.the State callback invoked when the parent rebuilds with a new configuration of the same type
  3. C.the State callback run when the object is permanently removed, used to release controllers and listeners
  4. D.the State callback run once when the object is inserted, ideal for one-time setup like subscriptions

Answer + AI explanation with Pro

2. Which term means: "the State callback run once when the object is inserted, ideal for one-time setup like subscriptions"?

Junior
  1. A.dispose
  2. B.didUpdateWidget
  3. C.initState
  4. D.didChangeDependencies

Answer + AI explanation with Pro

3. Which statement is correct?

Junior
  1. A.initState — the State callback run once when the object is inserted, ideal for one-time setup like subscriptions
  2. B.initState — the State callback fired after initState and whenever an inherited dependency this object relies on changes
  3. C.initState — the State callback invoked when the parent rebuilds with a new configuration of the same type
  4. D.initState — the State callback run when the object is permanently removed, used to release controllers and listeners

Answer + AI explanation with Pro

4. What is dispose?

Junior
  1. A.the State callback invoked when the parent rebuilds with a new configuration of the same type
  2. B.the State callback fired after initState and whenever an inherited dependency this object relies on changes
  3. C.the State callback run when the object is permanently removed, used to release controllers and listeners
  4. D.the State callback run once when the object is inserted, ideal for one-time setup like subscriptions

Answer + AI explanation with Pro

5. Which term means: "the State callback run when the object is permanently removed, used to release controllers and listeners"?

Junior
  1. A.didChangeDependencies
  2. B.dispose
  3. C.didUpdateWidget
  4. D.initState

Answer + AI explanation with Pro

6. Which statement is correct?

Junior
  1. A.dispose — the State callback invoked when the parent rebuilds with a new configuration of the same type
  2. B.dispose — the State callback run when the object is permanently removed, used to release controllers and listeners
  3. C.dispose — the State callback run once when the object is inserted, ideal for one-time setup like subscriptions
  4. D.dispose — the State callback fired after initState and whenever an inherited dependency this object relies on changes

Answer + AI explanation with Pro

7. What is didUpdateWidget?

Mid
  1. A.the State callback invoked when the parent rebuilds with a new configuration of the same type
  2. B.the State callback run when the object is permanently removed, used to release controllers and listeners
  3. C.the State callback run once when the object is inserted, ideal for one-time setup like subscriptions
  4. D.the State callback fired after initState and whenever an inherited dependency this object relies on changes

Answer + AI explanation with Pro

8. Which term means: "the State callback invoked when the parent rebuilds with a new configuration of the same type"?

Mid
  1. A.didChangeDependencies
  2. B.initState
  3. C.dispose
  4. D.didUpdateWidget

Answer + AI explanation with Pro

9. Which statement is correct?

Mid
  1. A.didUpdateWidget — the State callback invoked when the parent rebuilds with a new configuration of the same type
  2. B.didUpdateWidget — the State callback fired after initState and whenever an inherited dependency this object relies on changes
  3. C.didUpdateWidget — the State callback run once when the object is inserted, ideal for one-time setup like subscriptions
  4. D.didUpdateWidget — the State callback run when the object is permanently removed, used to release controllers and listeners

Answer + AI explanation with Pro

10. What is didChangeDependencies?

Mid
  1. A.the State callback run once when the object is inserted, ideal for one-time setup like subscriptions
  2. B.the State callback invoked when the parent rebuilds with a new configuration of the same type
  3. C.the State callback run when the object is permanently removed, used to release controllers and listeners
  4. D.the State callback fired after initState and whenever an inherited dependency this object relies on changes

Answer + AI explanation with Pro

11. Which term means: "the State callback fired after initState and whenever an inherited dependency this object relies on changes"?

Mid
  1. A.initState
  2. B.dispose
  3. C.didChangeDependencies
  4. D.didUpdateWidget

Answer + AI explanation with Pro

12. Which statement is correct?

Mid
  1. A.didChangeDependencies — the State callback run once when the object is inserted, ideal for one-time setup like subscriptions
  2. B.didChangeDependencies — the State callback fired after initState and whenever an inherited dependency this object relies on changes
  3. C.didChangeDependencies — the State callback run when the object is permanently removed, used to release controllers and listeners
  4. D.didChangeDependencies — the State callback invoked when the parent rebuilds with a new configuration of the same type

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 Lifecycle 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