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.
A.the State callback fired after initState and whenever an inherited dependency this object relies on changes
B.the State callback invoked when the parent rebuilds with a new configuration of the same type
C.the State callback run when the object is permanently removed, used to release controllers and listeners
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
A.dispose
B.didUpdateWidget
C.initState
D.didChangeDependencies
Answer + AI explanation with Pro
3. Which statement is correct?
Junior
A.initState — the State callback run once when the object is inserted, ideal for one-time setup like subscriptions
B.initState — the State callback fired after initState and whenever an inherited dependency this object relies on changes
C.initState — the State callback invoked when the parent rebuilds with a new configuration of the same type
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
A.the State callback invoked when the parent rebuilds with a new configuration of the same type
B.the State callback fired after initState and whenever an inherited dependency this object relies on changes
C.the State callback run when the object is permanently removed, used to release controllers and listeners
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
A.didChangeDependencies
B.dispose
C.didUpdateWidget
D.initState
Answer + AI explanation with Pro
6. Which statement is correct?
Junior
A.dispose — the State callback invoked when the parent rebuilds with a new configuration of the same type
B.dispose — the State callback run when the object is permanently removed, used to release controllers and listeners
C.dispose — the State callback run once when the object is inserted, ideal for one-time setup like subscriptions
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
A.the State callback invoked when the parent rebuilds with a new configuration of the same type
B.the State callback run when the object is permanently removed, used to release controllers and listeners
C.the State callback run once when the object is inserted, ideal for one-time setup like subscriptions
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
A.didChangeDependencies
B.initState
C.dispose
D.didUpdateWidget
Answer + AI explanation with Pro
9. Which statement is correct?
Mid
A.didUpdateWidget — the State callback invoked when the parent rebuilds with a new configuration of the same type
B.didUpdateWidget — the State callback fired after initState and whenever an inherited dependency this object relies on changes
C.didUpdateWidget — the State callback run once when the object is inserted, ideal for one-time setup like subscriptions
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
A.the State callback run once when the object is inserted, ideal for one-time setup like subscriptions
B.the State callback invoked when the parent rebuilds with a new configuration of the same type
C.the State callback run when the object is permanently removed, used to release controllers and listeners
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
A.initState
B.dispose
C.didChangeDependencies
D.didUpdateWidget
Answer + AI explanation with Pro
12. Which statement is correct?
Mid
A.didChangeDependencies — the State callback run once when the object is inserted, ideal for one-time setup like subscriptions
B.didChangeDependencies — the State callback fired after initState and whenever an inherited dependency this object relies on changes
C.didChangeDependencies — the State callback run when the object is permanently removed, used to release controllers and listeners
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.