- 
						1. Django routes are specified as regular expressions to match URLs. What happens when a URL is matched? 
															- The specified template is rendered, supplying matched arguments as the context. 
- An 404 HTTP response is returned indicating that the resource not found 
- The specified view is called and passed the HTTP request and any matched arguments specified in the URL pattern 
 Answer
- 
						2. How is django.db.models.Model used to define data models for a Django project? 
															- By invoking a factory method of Model. 
- By creating a new subclass of Model 
- By passing the model definition as a dictionary parameter 
- By creating a new instance of Model 
 Answer
- 
						3. Select all that apply: Which of the following tasks can be performed with manage.py? 
															- Perform database migrations. 
- Start a test server. 
- Define new data models. 
- Create new applications. 
 Answer
- 
						4. What is the name of the command-line tool that Django provides for managing a newly-created project and its applications? 
															- django-admin 
- manage.py 
- apachectl 
- pip 
 Answer
- 
						5. In the Django Template Language, the {% ... %} notation provides for the inclusion of arbitrary Python code, with structures like 'for', 'if', etc. 
															- True 
- False 
 Answer
- 
						6. Select all that apply: Which of the following features do the automatically generated admin pages provide for a newly created model? 
															- Datatype-appropriate edit fields. 
- Tracking history of changes to data. 
- Editing relationally-linked records. 
- Record creation and deletion. 
 Answer
- 
						7. What task do migrations automate? 
															- Structural changes to project database tables to reflect changes to data models. 
- Deployment of project data to production server 
- Internationalization of site content to reflect local differences in local date and currency formatting conventions  
 Answer
- 
						8. Select all that apply: What kind of relation is defined between models A and B by invoking ForeignKey(A) in the class definition for model B? 
															- Many to one: each instance of A belongs to an instance of B 
- One to one: each instance of A corresponds to a unique instance of B. 
- One to many: each instance of B belongs to an instance of A. 
 Answer