Question Bank

1899 approved questions from the community

Which of the following can be done with `express.Router`? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
45s
Express
by Mohamed

Which of the following are benefits of using Express.js? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
45s
Express
by Mohamed

Which of the following are types of middleware in Express.js? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
45s
Express
by Mohamed

Which of the following statements are true about Express.js routing? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
45s
Express
by Mohamed

Which of the following are recommended practices for Express.js security? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
45s
Express
by Mohamed

Which HTTP status codes indicate client errors? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
40s
Express
by Mohamed

Which of the following are common debugging techniques for Express.js applications? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
45s
Express
by Mohamed

What is the purpose of `res.locals` in Express.js?

MEDIUM
SINGLE CHOICE
35s
Express
by Mohamed

How do you redirect a request to a different URL in Express.js?

MEDIUM
SINGLE CHOICE
30s
Express
by Mohamed

What method would you use to send a file for download in Express.js?

MEDIUM
SINGLE CHOICE
30s
Express
by Mohamed

When should you use both `app.get()` and `app.post()` for the same route path?

MEDIUM
SINGLE CHOICE
35s
Express
by Mohamed

How can you set cache-control headers for static files served by Express.js?

MEDIUM
SINGLE CHOICE
35s
Express
by Mohamed

How do you access HTTP headers from a request in Express.js?

MEDIUM
SINGLE CHOICE
30s
Express
by Mohamed

What is the purpose of the `req.fresh` property in Express.js?

MEDIUM
SINGLE CHOICE
35s
Express
by Mohamed

What middleware is needed to parse URL-encoded form data in Express.js?

MEDIUM
SINGLE CHOICE
30s
Express
by Mohamed

What is the difference between application-level and router-level middleware?

MEDIUM
SINGLE CHOICE
35s
Express
by Mohamed

How can you serve static files from a subdirectory and make them accessible at a specific URL prefix?

MEDIUM
SINGLE CHOICE
35s
Express
by Mohamed

What is the signature of an error-handling middleware in Express.js?

MEDIUM
SINGLE CHOICE
30s
Express
by Mohamed

How do you access cookies in an Express.js application?

MEDIUM
SINGLE CHOICE
35s
Express
by Mohamed

What is the purpose of calling `next(err)` with an error parameter?

MEDIUM
SINGLE CHOICE
35s
Express
by Mohamed
PreviousPage 31 of 95Next