Module Quiz: Introduction to Django Quiz Answers

In this article i am gone to share Django Web Framework by Meta | Module Quiz: Introduction to Django Quiz Answers with you..

Enroll Link: Django Web Framework


Module Quiz: Introduction to Django Quiz Answers

Question 1)
Which of the following are some of the differences between the commands django-admin and manage.py? Select all that apply.

  • django-admin is installed in the Python environment when you install Django with PIP utility.
  • The manage.py file is created inside each Django project folder.
  • manage.py is more convenient to use than django-admin.
  • django-admin is a command-line utility and manage.py is a Python script.
  • There is no difference between django-admin and manage.py.

Question 2)
The urls.py file is present in the project package and the app package.

  • True
  • False

Question 3)
What happens when the view function created inside the views.py file is modified while the development server is still running?

  • The development server will automatically reload and changes will reflect on webpage reload.
  • The server will need to be restarted manually to reflect new changes.
  • The webpage in the browser is automatically reloaded to reflect the new changes.
  • The development server will terminate.

Question 4)
Where is the manage.py file located?

  • Inside the app package folder
  • Inside the project package folder
  • Inside the scripts folder of the current Python environment.
  • Inside the project’s outer container folder

Question 5)
By default, Django’s built-in development server runs on the local machine with IP address 127.0.0.1 and port 8000.

  • True
  • False

Question 6)
Does the View layer in Django correspond to the View layer in MVC architecture?

  • Yes
  • No

Question 7)
Which of the following statements is true about the view function? Select all that apply.

  • Receives the request object from the server.
  • Loads the template
  • Returns a response to the client
  • Interacts with the model layer

Question 8)
Which of the following statements are true about a model in Django? Select all that apply.

  • A Django Template fetches the data from a Model and displays it on a web page.
  • Model class attributes are used to create a database table.
  • A model is a Python class
  • The Model defines the processing logic of the Django application.

Question 9)
Which Python module is used from the command-line to create a virtual environment?

  • venv
  • startapp
  • pip3
  • shell

Question 10)
Which of these pre-built apps are installed in a Django project by default? Select all that apply.

  • postgress app
  • django.contrib.admin
  • django.contrib.auth
  • django.contrib.messages

 

 

1 thought on “Module Quiz: Introduction to Django Quiz Answers”

Leave a Comment