All practice tasks

Knowledge Check

Constructor injection evidence

While reviewing Angular dependency injection, a component creates its HTTP service manually. Which action fixes it, and which check proves it worked?

Answer options

  • A. Inject the service dependency
  • B. Verify a test double can replace it
  • C. Build it with a provider factory
  • D. Provide the endpoint through a token

What this task practices

Constructor injection evidence is a knowledge check interview exercise that trains prompt interpretation, explicit assumptions, a concrete response, and a clear explanation of tradeoffs. The catalog marks it as hard difficulty. It focuses on Angular Dependency Injection, Constructor Injection. The signed-in workspace provides the tools for the round and evaluates the attempt against task-specific criteria. Reference solutions, hidden checks, evaluator instructions, and candidate work remain private.

Sign in to startThe workspace and evaluation open after sign in.