Question Bank
1899 approved questions from the community
What are accessors and mutators in Eloquent?
What does the `belongsTo` relationship method define in Eloquent?
What is the purpose of the `composer install` command in Laravel setup?
What is the purpose of model events in Eloquent?
What is the purpose of fallback routes in Laravel?
Which of the following are types of Eloquent relationships? (Select all that apply)
What does the list_display option do in ModelAdmin?
What is the purpose of the ModelAdmin class in Django?
The Django admin interface is suitable for production client-facing applications.
What does on_delete=models.CASCADE mean in a ForeignKey relationship?
What is the main difference between ForeignKey and ManyToManyField?
An abstract base class in Django creates its own database table.
ManyToManyField automatically creates an intermediary join table in the database.
A ForeignKey field requires an on_delete parameter to specify behavior when the referenced object is deleted.
What does the render() function do in Django views?
What is the purpose of the include() function in Django URLs?
What function is used for simple URL pattern matching in Django?
Django migrations can only be applied forward and cannot be reversed.
In Django URL patterns, the view parameter must always be a function reference.
What is the difference between select_related() and prefetch_related() in Django?