Question Bank

1899 approved questions from the community

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

MEDIUM
SINGLE CHOICE
35s
Express
by Mohamed

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

MEDIUM
SINGLE CHOICE
30s
Express
by Mohamed

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

MEDIUM
SINGLE CHOICE
35s
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 do you implement a simple authentication middleware 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 is the purpose of the `app.param()` method in Express.js?

MEDIUM
SINGLE CHOICE
35s
Express
by Mohamed

How do you enable CORS for all routes in an Express.js application using the cors package?

MEDIUM
SINGLE CHOICE
35s
Express
by Mohamed

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

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 purpose of calling `next(err)` with an error parameter?

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

Where are error messages from validation failures automatically available in Blade views?

MEDIUM
SINGLE CHOICE
30s
Laravel
by Mohamed

Blade templates support template inheritance through the @extends and @section directives.

MEDIUM
TRUE FALSE
25s
Laravel
by Mohamed

Laravel automatically redirects back to the previous location with error messages when validation fails using the validate() method.

MEDIUM
TRUE FALSE
25s
Laravel
by Mohamed

What are RESTful Resource Controllers in Laravel?

MEDIUM
SINGLE CHOICE
35s
Laravel
by Mohamed

What is Realtime Event Broadcasting in Laravel?

MEDIUM
SINGLE CHOICE
35s
Laravel
by Mohamed

What is the purpose of Queues in Laravel?

MEDIUM
SINGLE CHOICE
35s
Laravel
by Mohamed

What is the purpose of Task Scheduling in Laravel?

MEDIUM
SINGLE CHOICE
30s
Laravel
by Mohamed
PreviousPage 32 of 95Next