Chapter quiz · Express & REST APIs

Test what you learned.

8 questions on Express & REST APIs. Pass 70% to clear the chapter.

← Review chapter lessons

Quiz

Express & REST APIs — Chapter Quiz

Eight questions on routing, middleware, validation, auth, CORS.

0/ 9
  1. Question 1
    1

    What does app.use(express.json()) do?

  2. Question 2
    2

    What is the correct HTTP method for creating a resource?

  3. Question 3
    3

    What status code means 'authentication failed / not authenticated'?

  4. Question 4
    4

    It's safe to use Access-Control-Allow-Origin: * with credentials.

  5. Question 5
    5

    What is the recommended password hashing function?

  6. Question 6
    6

    Why validate request bodies with Zod (or similar)?

  7. Question 7
    7

    Express error-handling middleware has ___ arguments (special signature).

  8. Question 8
    8

    Which middlewares would you add to a production Express app?

    Select all that apply.

Pick an answer — instant feedback as you go.