Question Bank

1085 approved questions from the community

Express.js is synchronous and cannot handle asynchronous operations.

EASY
TRUE FALSE
20s
Express
by Mohamed

What method sends a JSON response in Express.js?

EASY
SINGLE CHOICE
25s
Express
by Mohamed

Which object in Express.js represents the HTTP request?

EASY
SINGLE CHOICE
25s
Express
by Mohamed

Which object in Express.js represents the HTTP response?

EASY
SINGLE CHOICE
25s
Express
by Mohamed

What file is typically the entry point for an Express.js application?

EASY
SINGLE CHOICE
25s
Express
by Mohamed

`express.Router` can only be used once per application.

EASY
TRUE FALSE
20s
Express
by Mohamed

Express.js provides built-in support for template engines.

EASY
TRUE FALSE
20s
Express
by Mohamed

What does the `res.status(200)` indicate in Express.js?

EASY
SINGLE CHOICE
25s
Express
by Mohamed

The `app.use()` function can only be used for application-level middleware.

EASY
TRUE FALSE
25s
Express
by Mohamed

Route handlers in Express.js can only perform one operation per request.

EASY
TRUE FALSE
20s
Express
by Mohamed

Express.js requires you to manually parse JSON request bodies without any middleware.

EASY
TRUE FALSE
25s
Express
by Mohamed

In Express.js, `req.params` is used to access query string parameters.

EASY
TRUE FALSE
25s
Express
by Mohamed

The `express.static()` middleware can be used to serve CSS, JavaScript, and image files.

EASY
TRUE FALSE
20s
Express
by Mohamed

Express.js is a replacement for Node.js.

EASY
TRUE FALSE
20s
Express
by Mohamed

Middleware functions in Express.js must always call `next()` to pass control to the next middleware.

EASY
TRUE FALSE
25s
Express
by Mohamed

Express.js can only handle GET and POST requests.

EASY
TRUE FALSE
20s
Express
by Mohamed

What does RESTful API stand for in the context of Express.js?

EASY
SINGLE CHOICE
30s
Express
by Mohamed

Which of the following are valid template engines that work with Express.js? (Select all that apply)

EASY
MULTIPLE CHOICE
40s
Express
by Mohamed

What command initializes a new Node.js project for Express.js?

EASY
SINGLE CHOICE
25s
Express
by Mohamed

What does `req.body` contain in Express.js?

EASY
SINGLE CHOICE
30s
Express
by Mohamed
PreviousPage 20 of 55Next