1. What is Middleware ? Junior 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 Reveal the answer + AI explanation — free account
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() Reveal the answer + AI explanation — free account
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 Reveal the answer + AI explanation — free account
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 Reveal the answer + AI explanation — free account
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 Reveal the answer + AI explanation — free account
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 Reveal the answer + AI explanation — free account
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 Reveal the answer + AI explanation — free account
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() Reveal the answer + AI explanation — free account
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 Reveal the answer + AI explanation — free account
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 Reveal the answer + AI explanation — free account
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 Reveal the answer + AI explanation — free account
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 Reveal the answer + AI explanation — free account
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 Reveal the answer + AI explanation — free account
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() Reveal the answer + AI explanation — free account
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 Reveal the answer + AI explanation — free account
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 Reveal the answer + AI explanation — free account
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 Reveal the answer + AI explanation — free account
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 Reveal the answer + AI explanation — free account