State & DI interview questions

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.

Take the free IT readiness check

or take a mock interview set up for this area

1. What is @inject directive?

Junior
  1. A.a registered class holding shared application data that components inject to read and update common values across pages
  2. B.a base class that ties injected scoped services to the component's own lifetime so they dispose when it does
  3. C.the directive that supplies a registered service instance into a component property
  4. 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
  1. A.Scoped service lifetime
  2. B.OwningComponentBase
  3. C.@inject directive
  4. D.Container-managed state service

Answer + AI explanation with Pro

3. Which statement is correct?

Junior
  1. A.@inject directive — the component that wraps a subtree to share a value with all descendants implicitly
  2. B.@inject directive — a base class that ties injected scoped services to the component's own lifetime so they dispose when it does
  3. C.@inject directive — a registered class holding shared application data that components inject to read and update common values across pages
  4. 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
  1. A.the directive that supplies a registered service instance into a component property
  2. B.the component that wraps a subtree to share a value with all descendants implicitly
  3. C.a registered class holding shared application data that components inject to read and update common values across pages
  4. 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
  1. A.@inject directive
  2. B.Scoped service lifetime
  3. C.CascadingValue
  4. D.OwningComponentBase

Answer + AI explanation with Pro

6. Which statement is correct?

Mid
  1. A.CascadingValue — a base class that ties injected scoped services to the component's own lifetime so they dispose when it does
  2. B.CascadingValue — the directive that supplies a registered service instance into a component property
  3. C.CascadingValue — the component that wraps a subtree to share a value with all descendants implicitly
  4. 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
  1. A.the component that wraps a subtree to share a value with all descendants implicitly
  2. B.a registered class holding shared application data that components inject to read and update common values across pages
  3. C.a base class that ties injected scoped services to the component's own lifetime so they dispose when it does
  4. 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
  1. A.OwningComponentBase
  2. B.Container-managed state service
  3. C.Scoped service lifetime
  4. D.@inject directive

Answer + AI explanation with Pro

9. Which statement is correct?

Mid
  1. A.Scoped service lifetime — the component that wraps a subtree to share a value with all descendants implicitly
  2. B.Scoped service lifetime — a base class that ties injected scoped services to the component's own lifetime so they dispose when it does
  3. C.Scoped service lifetime — a registration where one instance is shared within a single user connection or request scope
  4. 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
  1. A.the component that wraps a subtree to share a value with all descendants implicitly
  2. B.a registration where one instance is shared within a single user connection or request scope
  3. C.a base class that ties injected scoped services to the component's own lifetime so they dispose when it does
  4. 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
  1. A.Container-managed state service
  2. B.@inject directive
  3. C.CascadingValue
  4. D.Scoped service lifetime

Answer + AI explanation with Pro

12. Which statement is correct?

Senior
  1. A.Container-managed state service — a registered class holding shared application data that components inject to read and update common values across pages
  2. 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
  3. C.Container-managed state service — the component that wraps a subtree to share a value with all descendants implicitly
  4. 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
  1. A.the directive that supplies a registered service instance into a component property
  2. B.a base class that ties injected scoped services to the component's own lifetime so they dispose when it does
  3. C.a registered class holding shared application data that components inject to read and update common values across pages
  4. 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
  1. A.OwningComponentBase
  2. B.CascadingValue
  3. C.@inject directive
  4. D.Scoped service lifetime

Answer + AI explanation with Pro

15. Which statement is correct?

Senior
  1. A.OwningComponentBase — a base class that ties injected scoped services to the component's own lifetime so they dispose when it does
  2. B.OwningComponentBase — the component that wraps a subtree to share a value with all descendants implicitly
  3. C.OwningComponentBase — the directive that supplies a registered service instance into a component property
  4. 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.

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