# Module Quiz: The Full Stack Using Django

1. **When Django is set up to use MySQL as its database, it will use which port to connect to MySQL by default?**
    
    * 8000
        
    * <mark>3306</mark>
        
    * 8080
        
    * 443
        
2. **A collection of objects obtained from a Django model using function calls such as** `Model.objects.all()` **will be a \_\_\_\_\_.**
    
    * Tuple
        
    * <mark>QuerySet</mark>
        
    * JSON object
        
    * List
        
3. **What command is used to create a migration in Django?**
    
    * [`manage.py`](http://manage.py) <mark> makemigrations</mark>
        
    * [`manage.py`](http://manage.py) migrate
        
    * django-admin makemigrations
        
    * django-admin migrate
        
4. **\_\_\_\_\_\_\_\_\_ is the class containing Django implementation for unit tests in Python.**
    
    * <mark>TestCase</mark>
        
    * TestUnit
        
    * UnitTest
        
    * TestCaseUnit
        
5. **This tool allows a developer to quickly build APIs in Django and provides other benefits, like a built-in API viewer and serializer.**
    
    * <mark>DRF</mark>
        
    * MVT
        
    * REST
        
    * JSON
        
6. **Model relationships can be which of the following types?** Select all that apply.
    
    * <mark>One-to-one</mark>
        
    * <mark>One-to-many</mark>
        
    * One-to-none
        
    * <mark>Many-to-many</mark>
        
7. **What function can be used in Django to help normalize data coming back from an API call?**
    
    * <mark>cleaned_data</mark>
        
    * normalize\_data
        
    * get\_clean\_data
        
    * data\_clean
        
8. **When building a model, each attribute corresponds to what?**
    
    * <mark>A database field</mark>
        
    * A dictionary key
        
    * A view
        
    * A form field
        
9. **Select the correct implementation of the** `render()` **function inside a view for rendering a context dictionary in a template added to home.html.**
    
    * return render(request, context, 'home.html')
        
    * <mark>return render(request, ‘home.html', context)</mark>
        
    * return render( ‘home.html’, request, context)
        
    * return render(context, request, 'home.html')
        
10. **When authenticated calls need to be made, what is used to pass authentication information?**
    
    * <mark>Bearer token</mark>
        
    * JSON
        
    * Payload
        
    * Django model
        

---

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1731483102927/f6ff40db-4144-46ab-8201-c5df82d96930.png align="center")
