Lifecycle interview questions

12 real Lifecycle questions from the Flutter 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 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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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