Chapter quiz · Services, HTTP & State

Test what you learned.

8 questions on Services, HTTP & State. Pass 70% to clear the chapter.

← Review chapter lessons

Quiz

Services, HTTP & State — Chapter Quiz

Eight questions on DI, HttpClient, RxJS, signals, and state patterns.

0/ 9
  1. Question 1
    1

    What does @Injectable({ providedIn: 'root' }) do?

  2. Question 2
    2

    Which function is the modern way to inject a dependency?

  3. Question 3
    3

    What does provideHttpClient(withInterceptors([authInterceptor])) do?

  4. Question 4
    4

    In the template, how do you display the latest value of users$: Observable<User[]>?

  5. Question 5
    5

    A computed() signal is re-evaluated when:

  6. Question 6
    6

    effect() is the right place to put side effects that should run when a signal changes.

  7. Question 7
    7

    The Angular API that pairs a signal with an async data source is ___.

  8. Question 8
    8

    Which are common state-management approaches in Angular?

    Select all that apply.

Pick an answer — instant feedback as you go.