Loading...
QUIZ

Certification Test

 
Que No. 1 ) What is the purpose of the Django "admin.py" file?

A.) To define URL patterns for the admin site
B.) To create database tables
C.) define the admin interface for models
D.) To generate HTML code


Que No. 2 ) What is Django's "STATIC_ROOT" setting used for?

A.) To define URL patterns
B.) To specify the root directory for collecting static files
C.) To create models
D.) To manage migrations


Que No. 3 ) Which command is used to apply database migrations in Django?

A.) python manage.py migrate
B.) python manage.py apply
C.) python manage.py update
D.) python manage.py syncdb


Que No. 4 ) What is the Django template tag used for displaying the value of a variable?

A.) {% var %}
B.) {{ var }}
C.) [[ var ]]
D.) @@ var @@


Que No. 5 ) What is the Django template tag used for template inheritance?

A.) {% extends %}
B.) {% include %}
C.) {% block %}
D.) {% parent %}


Que No. 6 ) What is the purpose of Django's "MEDIA_URL" setting?

A.) To define URL patterns
B.) To specify the URL prefix for media files (e.g., user-uploaded images)
C.) To create models
D.) To manage migrations


Que No. 7 ) Which authentication backend is commonly used for integrating third-party authentication providers in Django?

A.) OAuth
B.) JWT
C.) LDAP
D.) Django Authentication System


Que No. 8 ) What is the Django template tag used for including the content of another template file multiple times?

A.) {% extends %}
B.) {% include %}
C.) {% block %}
D.) {% import %}


Que No. 9 ) What is the purpose of the Django "signals" framework?

A.) To define URL patterns
B.) To create models
C.) To allow decoupled applications to get notified of certain events
D.) To generate HTML code


Que No. 10 ) What is Django's "Session" middleware used for?

A.) To manage database migrations
B.) To create models
C.) To store session data for users
D.) To define URL patterns