Chapter quiz · Dependency Injection & Modules

Test what you learned.

8 questions on Dependency Injection & Modules. Pass 70% to clear the chapter.

← Review chapter lessons

Quiz

Dependency Injection — Chapter Quiz

Check your understanding of providers, scopes, and dynamic modules.

0/ 9
  1. Question 1
    1

    Which provider syntax injects a plain object as a value?

  2. Question 2
    2

    When should you reach for forwardRef?

  3. Question 3
    3

    What is the default scope of a Nest provider?

  4. Question 4
    4

    Which provider syntax runs a function to produce the value, and can be async?

  5. Question 5
    5

    What does @Global() do on a module?

  6. Question 6
    6

    Constructor injection is the recommended way to receive dependencies in Nest.

  7. Question 7
    7

    A module method named ___ produces a configurable (dynamic) module.

  8. Question 8
    8

    Which provider scopes does Nest support?

    Select all that apply.

Pick an answer — instant feedback as you go.