Widgets interview questions

18 real Widgets 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 StatelessWidget?

Junior
  1. A.a widget with no mutable state that rebuilds only when its parent passes new configuration
  2. B.the immutable, declarative description of the UI formed by nesting configuration objects from a root down to leaves
  3. C.a handle to a widget's location in the tree, used to look up ancestors, theme, media query, and inherited data
  4. D.a helper that supplies a fresh descendant context inside a callback so lookups resolve below the current node
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. A.StatelessWidget — a widget that pairs with a State object so it can hold mutable data and rebuild over its lifetime
  2. B.StatelessWidget — the long-lived companion to a stateful widget that survives rebuilds and exposes initState, build, and dispose
  3. C.StatelessWidget — a widget with no mutable state that rebuilds only when its parent passes new configuration
  4. D.StatelessWidget — a handle to a widget's location in the tree, used to look up ancestors, theme, media query, and inherited data
Reveal the answer + AI explanation — free account

4. What is StatefulWidget?

Junior
  1. A.a helper that supplies a fresh descendant context inside a callback so lookups resolve below the current node
  2. B.a widget that pairs with a State object so it can hold mutable data and rebuild over its lifetime
  3. C.a widget with no mutable state that rebuilds only when its parent passes new configuration
  4. D.a handle to a widget's location in the tree, used to look up ancestors, theme, media query, and inherited data
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Junior
  1. A.StatefulWidget — the long-lived companion to a stateful widget that survives rebuilds and exposes initState, build, and dispose
  2. B.StatefulWidget — a widget with no mutable state that rebuilds only when its parent passes new configuration
  3. C.StatefulWidget — a helper that supplies a fresh descendant context inside a callback so lookups resolve below the current node
  4. D.StatefulWidget — a widget that pairs with a State object so it can hold mutable data and rebuild over its lifetime
Reveal the answer + AI explanation — free account

7. What is the widget tree?

Mid
  1. A.the immutable, declarative description of the UI formed by nesting configuration objects from a root down to leaves
  2. B.the long-lived companion to a stateful widget that survives rebuilds and exposes initState, build, and dispose
  3. C.a widget with no mutable state that rebuilds only when its parent passes new configuration
  4. D.a helper that supplies a fresh descendant context inside a callback so lookups resolve below the current node
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Mid
  1. A.the widget tree — a widget with no mutable state that rebuilds only when its parent passes new configuration
  2. B.the widget tree — a helper that supplies a fresh descendant context inside a callback so lookups resolve below the current node
  3. C.the widget tree — a handle to a widget's location in the tree, used to look up ancestors, theme, media query, and inherited data
  4. D.the widget tree — the immutable, declarative description of the UI formed by nesting configuration objects from a root down to leaves
Reveal the answer + AI explanation — free account

10. What is BuildContext?

Junior
  1. A.a widget with no mutable state that rebuilds only when its parent passes new configuration
  2. B.a helper that supplies a fresh descendant context inside a callback so lookups resolve below the current node
  3. C.a widget that pairs with a State object so it can hold mutable data and rebuild over its lifetime
  4. D.a handle to a widget's location in the tree, used to look up ancestors, theme, media query, and inherited data
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Junior
  1. A.BuildContext — a handle to a widget's location in the tree, used to look up ancestors, theme, media query, and inherited data
  2. B.BuildContext — a widget that pairs with a State object so it can hold mutable data and rebuild over its lifetime
  3. C.BuildContext — the long-lived companion to a stateful widget that survives rebuilds and exposes initState, build, and dispose
  4. D.BuildContext — the immutable, declarative description of the UI formed by nesting configuration objects from a root down to leaves
Reveal the answer + AI explanation — free account

13. What is Builder?

Mid
  1. A.a widget that pairs with a State object so it can hold mutable data and rebuild over its lifetime
  2. B.a widget with no mutable state that rebuilds only when its parent passes new configuration
  3. C.a helper that supplies a fresh descendant context inside a callback so lookups resolve below the current node
  4. D.a handle to a widget's location in the tree, used to look up ancestors, theme, media query, and inherited data
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Mid
  1. A.Builder — a helper that supplies a fresh descendant context inside a callback so lookups resolve below the current node
  2. B.Builder — the immutable, declarative description of the UI formed by nesting configuration objects from a root down to leaves
  3. C.Builder — a widget with no mutable state that rebuilds only when its parent passes new configuration
  4. D.Builder — a widget that pairs with a State object so it can hold mutable data and rebuild over its lifetime
Reveal the answer + AI explanation — free account

16. What is State object?

Mid
  1. A.the immutable, declarative description of the UI formed by nesting configuration objects from a root down to leaves
  2. B.the long-lived companion to a stateful widget that survives rebuilds and exposes initState, build, and dispose
  3. C.a widget with no mutable state that rebuilds only when its parent passes new configuration
  4. D.a helper that supplies a fresh descendant context inside a callback so lookups resolve below the current node
Reveal the answer + AI explanation — free account

18. Which statement is correct?

Mid
  1. A.State object — a handle to a widget's location in the tree, used to look up ancestors, theme, media query, and inherited data
  2. B.State object — the long-lived companion to a stateful widget that survives rebuilds and exposes initState, build, and dispose
  3. C.State object — a widget that pairs with a State object so it can hold mutable data and rebuild over its lifetime
  4. D.State object — a helper that supplies a fresh descendant context inside a callback so lookups resolve below the current node
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 Widgets free