Question Bank

1899 approved questions from the community

What are accessors and mutators 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

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

Which of the following are types of Eloquent relationships? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
40s
Laravel
by Mohamed

What does the list_display option do in ModelAdmin?

MEDIUM
SINGLE CHOICE
30s
Django
by Mohamed

What is the purpose of the ModelAdmin class in Django?

MEDIUM
SINGLE CHOICE
35s
Django
by Mohamed

The Django admin interface is suitable for production client-facing applications.

MEDIUM
TRUE FALSE
30s
Django
by Mohamed

What does on_delete=models.CASCADE mean in a ForeignKey relationship?

MEDIUM
SINGLE CHOICE
35s
Django
by Mohamed

What is the main difference between ForeignKey and ManyToManyField?

MEDIUM
SINGLE CHOICE
35s
Django
by Mohamed

An abstract base class in Django creates its own database table.

MEDIUM
TRUE FALSE
25s
Django
by Mohamed

ManyToManyField automatically creates an intermediary join table in the database.

MEDIUM
TRUE FALSE
25s
Django
by Mohamed

A ForeignKey field requires an on_delete parameter to specify behavior when the referenced object is deleted.

MEDIUM
TRUE FALSE
30s
Django
by Mohamed

What does the render() function do in Django views?

MEDIUM
SINGLE CHOICE
30s
Django
by Mohamed

What is the purpose of the include() function in Django URLs?

MEDIUM
SINGLE CHOICE
35s
Django
by Mohamed

What function is used for simple URL pattern matching in Django?

MEDIUM
SINGLE CHOICE
30s
Django
by Mohamed

Django migrations can only be applied forward and cannot be reversed.

MEDIUM
TRUE FALSE
25s
Django
by Mohamed

In Django URL patterns, the view parameter must always be a function reference.

MEDIUM
TRUE FALSE
25s
Django
by Mohamed

What is the difference between select_related() and prefetch_related() in Django?

MEDIUM
SINGLE CHOICE
40s
Django
by Mohamed
PreviousPage 35 of 95Next