15 State & DI questions from the Blazor 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.a registered class holding shared application data that components inject to read and update common values across pages
B.a base class that ties injected scoped services to the component's own lifetime so they dispose when it does
C.the directive that supplies a registered service instance into a component property
D.the component that wraps a subtree to share a value with all descendants implicitly
Answer + AI explanation with Pro
2. Which term means: "the directive that supplies a registered service instance into a component property"?
Junior
A.Scoped service lifetime
B.OwningComponentBase
C.@inject directive
D.Container-managed state service
Answer + AI explanation with Pro
3. Which statement is correct?
Junior
A.@inject directive — the component that wraps a subtree to share a value with all descendants implicitly
B.@inject directive — a base class that ties injected scoped services to the component's own lifetime so they dispose when it does
C.@inject directive — a registered class holding shared application data that components inject to read and update common values across pages
D.@inject directive — the directive that supplies a registered service instance into a component property
Answer + AI explanation with Pro
4. What is CascadingValue?
Mid
A.the directive that supplies a registered service instance into a component property
B.the component that wraps a subtree to share a value with all descendants implicitly
C.a registered class holding shared application data that components inject to read and update common values across pages
D.a base class that ties injected scoped services to the component's own lifetime so they dispose when it does
Answer + AI explanation with Pro
5. Which term means: "the component that wraps a subtree to share a value with all descendants implicitly"?
Mid
A.@inject directive
B.Scoped service lifetime
C.CascadingValue
D.OwningComponentBase
Answer + AI explanation with Pro
6. Which statement is correct?
Mid
A.CascadingValue — a base class that ties injected scoped services to the component's own lifetime so they dispose when it does
B.CascadingValue — the directive that supplies a registered service instance into a component property
C.CascadingValue — the component that wraps a subtree to share a value with all descendants implicitly
D.CascadingValue — a registration where one instance is shared within a single user connection or request scope
Answer + AI explanation with Pro
7. What is Scoped service lifetime?
Mid
A.the component that wraps a subtree to share a value with all descendants implicitly
B.a registered class holding shared application data that components inject to read and update common values across pages
C.a base class that ties injected scoped services to the component's own lifetime so they dispose when it does
D.a registration where one instance is shared within a single user connection or request scope
Answer + AI explanation with Pro
8. Which term means: "a registration where one instance is shared within a single user connection or request scope"?
Mid
A.OwningComponentBase
B.Container-managed state service
C.Scoped service lifetime
D.@inject directive
Answer + AI explanation with Pro
9. Which statement is correct?
Mid
A.Scoped service lifetime — the component that wraps a subtree to share a value with all descendants implicitly
B.Scoped service lifetime — a base class that ties injected scoped services to the component's own lifetime so they dispose when it does
C.Scoped service lifetime — a registration where one instance is shared within a single user connection or request scope
D.Scoped service lifetime — the directive that supplies a registered service instance into a component property
Answer + AI explanation with Pro
10. What is Container-managed state service?
Senior
A.the component that wraps a subtree to share a value with all descendants implicitly
B.a registration where one instance is shared within a single user connection or request scope
C.a base class that ties injected scoped services to the component's own lifetime so they dispose when it does
D.a registered class holding shared application data that components inject to read and update common values across pages
Answer + AI explanation with Pro
11. Which term means: "a registered class holding shared application data that components inject to read and update common values across pages"?
Senior
A.Container-managed state service
B.@inject directive
C.CascadingValue
D.Scoped service lifetime
Answer + AI explanation with Pro
12. Which statement is correct?
Senior
A.Container-managed state service — a registered class holding shared application data that components inject to read and update common values across pages
B.Container-managed state service — a base class that ties injected scoped services to the component's own lifetime so they dispose when it does
C.Container-managed state service — the component that wraps a subtree to share a value with all descendants implicitly
D.Container-managed state service — a registration where one instance is shared within a single user connection or request scope
Answer + AI explanation with Pro
13. What is OwningComponentBase?
Senior
A.the directive that supplies a registered service instance into a component property
B.a base class that ties injected scoped services to the component's own lifetime so they dispose when it does
C.a registered class holding shared application data that components inject to read and update common values across pages
D.a registration where one instance is shared within a single user connection or request scope
Answer + AI explanation with Pro
14. Which term means: "a base class that ties injected scoped services to the component's own lifetime so they dispose when it does"?
Senior
A.OwningComponentBase
B.CascadingValue
C.@inject directive
D.Scoped service lifetime
Answer + AI explanation with Pro
15. Which statement is correct?
Senior
A.OwningComponentBase — a base class that ties injected scoped services to the component's own lifetime so they dispose when it does
B.OwningComponentBase — the component that wraps a subtree to share a value with all descendants implicitly
C.OwningComponentBase — the directive that supplies a registered service instance into a component property
D.OwningComponentBase — a registered class holding shared application data that components inject to read and update common values across pages
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 & DI question come with Pro.