Question Bank

3705 approved questions from the community

What is middleware chaining and why is it important in Express.js?

HARD
SINGLE CHOICE
40s
Express
by Mohamed

What is the purpose of the `req.protocol` property?

MEDIUM
SINGLE CHOICE
30s
Express
by Mohamed

What is the purpose of setting CORS headers manually instead of using the cors package?

HARD
SINGLE CHOICE
40s
Express
by Mohamed

Which of the following are best practices for Express.js application structure? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
45s
Express
by Mohamed

How do optional and catch-all route segments work in Express.js?

HARD
SINGLE CHOICE
40s
Express
by Mohamed

What is the purpose of polymorphic relations in Eloquent?

HARD
SINGLE CHOICE
40s
Laravel
by Mohamed

What is lazy eager loading in Eloquent?

HARD
SINGLE CHOICE
40s
Laravel
by Mohamed

What does the `hasOne` relationship method define in Eloquent?

MEDIUM
SINGLE CHOICE
30s
Laravel
by Mohamed

What is eager loading in Eloquent?

MEDIUM
SINGLE CHOICE
35s
Laravel
by Mohamed

What does the `belongsTo` relationship method define in Eloquent?

MEDIUM
SINGLE CHOICE
30s
Laravel
by Mohamed

How can you apply regular expression constraints to route parameters in Laravel?

HARD
SINGLE CHOICE
40s
Laravel
by Mohamed

What is the purpose of query scopes in Eloquent?

MEDIUM
SINGLE CHOICE
35s
Laravel
by Mohamed

What flag is used to create a controller with an associated model?

EASY
SINGLE CHOICE
25s
Laravel
by Mohamed

What is the purpose of the `composer install` command in Laravel setup?

MEDIUM
SINGLE CHOICE
30s
Laravel
by Mohamed

What is the purpose of model events in Eloquent?

MEDIUM
SINGLE CHOICE
35s
Laravel
by Mohamed

What is the purpose of fallback routes in Laravel?

MEDIUM
SINGLE CHOICE
35s
Laravel
by Mohamed

What are accessors and mutators in Eloquent?

MEDIUM
SINGLE CHOICE
35s
Laravel
by Mohamed

What is a Has Many Through relationship in Eloquent?

HARD
SINGLE CHOICE
45s
Laravel
by Mohamed

What is the first file called when an HTTP request is made to a Laravel application?

HARD
SINGLE CHOICE
35s
Laravel
by Mohamed

How do you configure a database connection in Laravel?

MEDIUM
SINGLE CHOICE
35s
Laravel
by Mohamed
PreviousPage 67 of 186Next