Skip to content
KALANBLON
Show contents

Chapter 3 of 7 · 10 min

Quiz: HTTP on the server side

Requests, responses, methods, status codes, JSON and routers: let's check that you master HTTP on the server side. You need 70% correct answers, and every answer is explained.

Quiz

6 questions · pass mark: 70%

  1. 1.Which method should you use to create a new registration?

    One answer

  2. 2.The client asks for /api/courses/999, which does not exist. Which status code should you return?

    One answer

  3. 3.Which codes signal a client error?

    Several answers possible

  4. 4.What does JSON.parse("{name: 'Awa'}") produce?

    One answer

  5. 5.With the pattern /api/courses/:id and the path /api/courses/3, what is params.id?

    One answer

  6. 6.Fill in the name of the Node.js built-in module used to write a web server.

    Complete the code

    import { createServer } from "node:____";

Your progress is saved on this device. Create a free account to keep your progress on all your devices.