# Django Web Framework - Module Quiz: Introduction to Django

1. **Which of the following are some of the differences between the commands** `django-admin` **and** [`manage.py`](http://manage.py)**? Select all that apply.**
    
    * There is no difference between django-admin and [manage.py](http://manage.py).
        
    * <mark>django-admin is a command-line utility and </mark> [<mark>manage.py</mark>](http://manage.py) <mark>is a Python script.</mark>
        
    * [manage.py](http://manage.py) is more convenient to use than django-admin.
        
    * <mark>django-admin is installed in the Python environment when you install Django with PIP utility. The </mark> [<mark>manage.py</mark>](http://manage.py) <mark>file is created inside each Django project folder.</mark>
        
2. **The** [`urls.py`](http://urls.py) **file is present in the project package and the app package.**
    
    * <mark>True</mark>
        
    * False
        
3. **What happens when the view function created inside the** [`views.py`](http://views.py) **file is modified while the development server is still running?**
    
    * <mark>The development server will automatically reload and changes will reflect on webpage reload.</mark>
        
    * The development server will terminate.
        
    * 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.
        
4. **Where is the** [`manage.py`](http://manage.py) **file located?**
    
    * <mark>Inside the project's outer container folder</mark>
        
    * Inside the scripts folder of the current Python environment.
        
    * Inside the app package folder
        
    * Inside the project package folder
        
5. **By default, Django's built-in development server runs on the local machine with IP address 127.0.0.1 and port 8000.**
    
    * <mark>True</mark>
        
    * False
        
6. **Does the View layer in Django correspond to the View layer in MVC architecture?**
    
    * Yes
        
    * <mark>No</mark>
        
7. **Which of the following statements is true about the view function?** Select all that apply.
    
    * <mark>Receives the request object from the server.</mark>
        
    * <mark>Loads the template</mark>
        
    * <mark>Interacts with the model layer</mark>
        
    * <mark>Returns a response to the client</mark>
        
8. **Which of the following statements are true about a model in Django?** Select all that apply.
    
    * The Model defines the processing logic of the Django application.
        
    * <mark>A Django Template fetches the data from a Model and displays it on a web page.</mark>
        
    * <mark>A model is a Python class</mark>
        
    * <mark>Model class attributes are used to create a database table.</mark>
        
9. **Which Python module is used from the command-line to create a virtual environment?**
    
    * shell
        
    * startapp
        
    * pip3
        
    * <mark>venv</mark>
        
10. **Which of these pre-built apps are installed in a Django project by default?** Select all that apply.
    
    * postgress app
        
    * <mark>django.contrib.auth</mark>
        
    * <mark>django.contrib.admin</mark>
        
    * <mark>django.contrib.messages</mark>
        

---

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1731204237008/b448fbc0-1ed6-4fa2-8543-5d2c0773a8a5.png align="center")
