# Django Web Framework - Module quiz: REST APIs

1. **What are the benefits of using pipenv?** Choose all that apply.
    
    * <mark>It manages the dependencies</mark>
        
    * <mark>It creates a virtual environment for your project</mark>
        
    * It makes your project more secure
        
    * It makes your project run faster
        
2. **What is the default port number used by Django webserver?**
    
    * <mark>8000</mark>
        
    * 443
        
    * 8001
        
3. **What does the following command do?**
    
    * python [`manage.py`](http://manage.py) startapp
        
    * It creates a Django project
        
    * <mark>It creates a new Django app</mark>
        
    * It installs Django
        
4. **Authentication and authorization are the same thing.**
    
    * True
        
    * <mark>False</mark>
        
5. **Which of the following HTTP status codes are used to indicate client-side and server-side errors?** Choose all that apply.
    
    * <mark>503 - Service Unavailable</mark>
        
    * 201 - Created
        
    * 301 - Moved Permanently
        
    * <mark>404 Not Found</mark>
        
    * <mark>403 – Forbidden</mark>
        
6. **What are the valid** `Accept` **headers for requesting XML content?** Choose all that apply.
    
    * application/xml-content
        
    * code/xml
        
    * <mark>application/xml</mark>
        
    * <mark>text/xml</mark>
        
    * application/x-xml
        
7. **What can lead to data corruption in an API project?** Choose all that apply.
    
    * Lack of caching
        
    * <mark>Lack of authorization</mark>
        
    * <mark>Lack of authentication</mark>
        
    * <mark>Lack of throttling</mark>
        
    * <mark>Lack of data validation and sanitization</mark>
        
8. **Which of the following statements are valid for Insomnia?** Choose all that apply.
    
    * <mark>It’s a REST API Client</mark>
        
    * <mark>Insomnia can send different types of payloads</mark>
        
    * Insomnia has a mobile client
        
    * Insomnia has a command line tool
        
    * <mark>Insomnia is cross-platform</mark>
        
9. **Which of the following API clients/tools has both web and desktop versions?**
    
    * Insomnia
        
    * Curl
        
    * <mark>Postman</mark>
        
10. **What is the purpose of renderer classes in DRF?**
    
    * Quickly scaffold a CRUD API project
        
    * <mark>Convert serialized data to display as HTML, XML and JSON</mark>
        
    * Convert model instance to native Python data types
        

---

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1731318314153/dff116fd-b028-4747-8006-ff023c0d7f77.png align="center")
