Question Bank

1899 approved questions from the community

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

What is the purpose of the select_related() method in Django QuerySets?

MEDIUM
SINGLE CHOICE
35s
Django
by Mohamed

What does the create() method do in Django's ORM?

MEDIUM
SINGLE CHOICE
30s
Django
by Mohamed

Once a QuerySet is evaluated, its results can still be modified by adding more filters.

MEDIUM
TRUE FALSE
25s
Django
by Mohamed

QuerySets in Django are evaluated immediately when they are created.

MEDIUM
TRUE FALSE
25s
Django
by Mohamed

In Django's MTV pattern, what component is most similar to the Controller in traditional MVC?

MEDIUM
SINGLE CHOICE
35s
Django
by Mohamed

In Django's MTV architecture, what is the primary responsibility of the Model component?

MEDIUM
SINGLE CHOICE
30s
Django
by Mohamed

Django model fields can have descriptors like 'null' and 'blank' to define their behavior.

MEDIUM
TRUE FALSE
25s
Django
by Mohamed

In Django, each app must have its own urls.py file for URL routing.

MEDIUM
TRUE FALSE
25s
Django
by Mohamed

What is model inheritance in Django?

MEDIUM
SINGLE CHOICE
35s
Django
by Mohamed

What are the two main types of model inheritance in Django?

MEDIUM
SINGLE CHOICE
35s
Django
by Mohamed

What is the purpose of search_fields in ModelAdmin?

MEDIUM
SINGLE CHOICE
30s
Django
by Mohamed

What is the purpose of the Django admin interface for migrations?

MEDIUM
SINGLE CHOICE
30s
Django
by Mohamed
PreviousPage 36 of 95Next