Chapter quiz · Routing & Request Handling

Test what you learned.

8 questions on Routing & Request Handling. Pass 70% to clear the chapter.

← Review chapter lessons

Quiz

Routing — Chapter Quiz

Verify your grasp of Nest's route decorators and request handlers.

0/ 9
  1. Question 1
    1

    Which decorator reads the JSON request body?

  2. Question 2
    2

    What does @HttpCode(204) do?

  3. Question 3
    3

    Which decorator reads the value of /users/42's 42?

  4. Question 4
    4

    What does @Redirect('/login', 302) do on a handler?

  5. Question 5
    5

    Which decorator reads the ?page=2 part of a URL?

  6. Question 6
    6

    A Nest route handler can return a Promise and Nest will await it.

  7. Question 7
    7

    To create a parameter decorator, you use the createParamDecorator(___) factory from @nestjs/common.

  8. Question 8
    8

    Which decorators set the HTTP verb of a handler?

    Select all that apply.

Pick an answer — instant feedback as you go.