# Back-End Developer Capstone - Project Functionality

1. **Which of the following is the proper syntax to run the** `migrate` **command?**
    
    * migrate python [`manage.py`](http://manage.py)
        
    * python migrate [`manage.py`](http://manage.py)
        
    * pip3 [`manage.py`](http://manage.py) migrate
        
    * <mark>python </mark> [`manage.py`](http://manage.py) <mark> migrate</mark>
        
2. **Which of the following handles invalid or missing values from being stored in the database?**
    
    * SET sql\_mode=’DYNAMIC\_TRANS\_TABLES’
        
    * SET sql\_mode=’STATIC\_TRANS\_TABLES’
        
    * SET sql\_mode=’PASS\_TRANS\_TABLES’
        
    * <mark>SET sql_mode=’STRICT_TRANS_TABLES’</mark>
        
3. **If we want to use another type of database instead of SQLite we must change the** `DATABASES` **configuration in the \_\_\_\_\_\_\_\_\_ file.**
    
    * [modelSettings.py](http://modelSettings.py)
        
    * <mark>settings.py</mark>
        
    * [models.py](http://models.py)
        
    * py.models
        
4. **Which of the following will register the** `Menu` **model inside of your** [`admin.py`](http://admin.py) **file?**
    
    * [admin.site](http://admin.site)(Menu)
        
    * site.admin(Menu)
        
    * <mark>admin.site.register(Menu)</mark>
        
    * site.admin.register(Menu)
        
5. **Which file contains the** `INSTALLED_APPS` **for our application?**
    
    * <mark>settings.py</mark>
        
    * py.models
        
    * [modelSettings.py](http://modelSettings.py)
        
    * [models.py](http://models.py)
        
6. **Suppose we created a class which inherits from** `ListCreateView` **class, which two HTTP methods would be supported?**
    
    * <mark>POST</mark>
        
    * DELETE
        
    * PATCH
        
    * <mark>GET</mark>
        
7. **True or False: When using DRF you can use the** `DefaultRouter` **class to wire up API URL’s instead of declaring routes in the app and including them in the project’s** `URLConf`**.**
    
    * <mark>True</mark>
        
    * False
        
8. **True or False: Django applications can be configured to handle multiple databases.**
    
    * <mark>True</mark>
        
    * False
        
9. **What is one advantage of using** `ViewSets` **in Django REST Framework?**
    
    * <mark>Views based on </mark> `ViewSets` <mark> are more concise and help to keep logic organized.</mark>
        
    * Using one `ViewSet` we can handle all types of HTTP requests.
        
    * It automatically enforces authentication.
        
    * It automatically serializes the queryset.
        
10. **This is a special type of serializer which quickly creates a serializer class from Django model fields.**
    
    * JsonSerializer
        
    * <mark>ModelSerializer</mark>
        
    * MenuSerializer
        

---

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1731919219241/fbb94ce3-489b-4903-94fb-b894e5e64116.png align="center")
