18 HTTP & Express questions from the Node.js bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.
Free to start: the 2-minute IT readiness check — six questions and a result.
A.the callback that passes control to the next middleware; next(err) jumps to error handlers
B.sets the HTTP status code and sends a JSON response body
C.params are route path segments like /users/:id; query is the ?key=value string
D.an Express function (req, res, next) run in order to process a request
Answer + AI explanation with Pro
2. Which term means: "an Express function (req, res, next) run in order to process a request"?
Junior
A.Middleware
B.req.params vs req.query
C.Error-handling middleware
D.res.status().json()
Answer + AI explanation with Pro
3. Which statement is correct?
Junior
A.Middleware — an Express object that groups related routes for modular mounting
B.Middleware — sets the HTTP status code and sends a JSON response body
C.Middleware — params are route path segments like /users/:id; query is the ?key=value string
D.Middleware — an Express function (req, res, next) run in order to process a request
Answer + AI explanation with Pro
4. What is Router?
Mid
A.params are route path segments like /users/:id; query is the ?key=value string
B.the callback that passes control to the next middleware; next(err) jumps to error handlers
C.sets the HTTP status code and sends a JSON response body
D.an Express object that groups related routes for modular mounting
Answer + AI explanation with Pro
5. Which term means: "an Express object that groups related routes for modular mounting"?
Mid
A.next()
B.Router
C.req.params vs req.query
D.Middleware
Answer + AI explanation with Pro
6. Which statement is correct?
Mid
A.Router — an Express function (req, res, next) run in order to process a request
B.Router — an Express object that groups related routes for modular mounting
C.Router — the callback that passes control to the next middleware; next(err) jumps to error handlers
D.Router — sets the HTTP status code and sends a JSON response body
Answer + AI explanation with Pro
7. What is next()?
Junior
A.an Express function (req, res, next) run in order to process a request
B.the callback that passes control to the next middleware; next(err) jumps to error handlers
C.an Express object that groups related routes for modular mounting
D.middleware with four arguments (err, req, res, next) that handles errors passed to next
Answer + AI explanation with Pro
8. Which term means: "the callback that passes control to the next middleware; next(err) jumps to error handlers"?
Junior
A.Router
B.Middleware
C.next()
D.res.status().json()
Answer + AI explanation with Pro
9. Which statement is correct?
Junior
A.next() — sets the HTTP status code and sends a JSON response body
B.next() — middleware with four arguments (err, req, res, next) that handles errors passed to next
C.next() — the callback that passes control to the next middleware; next(err) jumps to error handlers
D.next() — an Express object that groups related routes for modular mounting
Answer + AI explanation with Pro
10. What is req.params vs req.query?
Junior
A.an Express object that groups related routes for modular mounting
B.the callback that passes control to the next middleware; next(err) jumps to error handlers
C.middleware with four arguments (err, req, res, next) that handles errors passed to next
D.params are route path segments like /users/:id; query is the ?key=value string
Answer + AI explanation with Pro
11. Which term means: "params are route path segments like /users/:id; query is the ?key=value string"?
Junior
A.next()
B.req.params vs req.query
C.Router
D.Error-handling middleware
Answer + AI explanation with Pro
12. Which statement is correct?
Junior
A.req.params vs req.query — an Express object that groups related routes for modular mounting
B.req.params vs req.query — params are route path segments like /users/:id; query is the ?key=value string
C.req.params vs req.query — an Express function (req, res, next) run in order to process a request
D.req.params vs req.query — the callback that passes control to the next middleware; next(err) jumps to error handlers
Answer + AI explanation with Pro
13. What is res.status().json()?
Junior
A.middleware with four arguments (err, req, res, next) that handles errors passed to next
B.the callback that passes control to the next middleware; next(err) jumps to error handlers
C.sets the HTTP status code and sends a JSON response body
D.an Express object that groups related routes for modular mounting
Answer + AI explanation with Pro
14. Which term means: "sets the HTTP status code and sends a JSON response body"?
Junior
A.next()
B.req.params vs req.query
C.Error-handling middleware
D.res.status().json()
Answer + AI explanation with Pro
15. Which statement is correct?
Junior
A.res.status().json() — sets the HTTP status code and sends a JSON response body
B.res.status().json() — an Express function (req, res, next) run in order to process a request
C.res.status().json() — middleware with four arguments (err, req, res, next) that handles errors passed to next
D.res.status().json() — the callback that passes control to the next middleware; next(err) jumps to error handlers
Answer + AI explanation with Pro
16. What is Error-handling middleware?
Mid
A.sets the HTTP status code and sends a JSON response body
B.an Express object that groups related routes for modular mounting
C.middleware with four arguments (err, req, res, next) that handles errors passed to next
D.the callback that passes control to the next middleware; next(err) jumps to error handlers
Answer + AI explanation with Pro
17. Which term means: "middleware with four arguments (err, req, res, next) that handles errors passed to next"?
Mid
A.next()
B.res.status().json()
C.req.params vs req.query
D.Error-handling middleware
Answer + AI explanation with Pro
18. Which statement is correct?
Mid
A.Error-handling middleware — an Express object that groups related routes for modular mounting
B.Error-handling middleware — middleware with four arguments (err, req, res, next) that handles errors passed to next
C.Error-handling middleware — sets the HTTP status code and sends a JSON response body
D.Error-handling middleware — the callback that passes control to the next middleware; next(err) jumps to error handlers
Answer + AI explanation with Pro
Free to start
Start with a free readiness check
Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every HTTP & Express question come with Pro.