Loading...
QUIZ

Certification Test

 
Que No. 1 ) Which command is used to create a new Django project?

A.) django new project_name
B.) django create project project_name
C.) django startproject project_name
D.) django init project_name


Que No. 2 ) What is the purpose of Django's middleware?

A.) To define URL patterns
B.) To manage database migrations
C.) To process requests and responses globally before reaching views
D.) To create web templates


Que No. 3 ) What is the Django template language used for?

A.) Writing Python code
B.) Defining database models
C.) Generating dynamic HTML content
D.) Managing URL patterns


Que No. 4 ) Which of the following is not a Django template tag?

A.) {% if %}
B.) {% for %}
C.) {% while %}
D.) {% block %}


Que No. 5 ) What is Django's "context" in the context of templates?

A.) The main application folder
B.) A dictionary of data that can be accessed in templates
C.) A type of database model
D.) A template tag


Que No. 6 ) In Django, what is the primary purpose of the settings.py file?

A.) To define URL patterns
B.) To manage database migrations
C.) To configure the Django project's settings
D.) To create web templates


Que No. 7 ) Which Django command is used to create a new application within a project?

A.) python manage.py newapp app_name
B.) python manage.py createapp app_name
C.) python manage.py startapp app_name
D.) python manage.py app app_name


Que No. 8 ) What is the purpose of Django's migration system?

A.) To create templates
B.) To manage database schema changes
C.) To define URL patterns
D.) To create views


Que No. 9 ) What is Django's "superuser"?

A.) A user with superpowers
B.) A user with special administrative privileges for the admin site
C.) A user who is always online
D.) A user with limited access to the site


Que No. 10 ) In Django's ORM, what is a "model"?

A.) A Python class that defines the structure of a database table
B.) A template for generating HTML code
C.) A URL pattern
D.) A view