wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Django Basic

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

A _____ is the single, definitive source of information about your data. It contains the essential fields and behaviors of the data you’re storing. Generally, each model maps to a single database table.

a)

Schema

b)

Template

c)

Model

d)

View

2.

To design URLs for an app, you create a Python module informally called a _____

a)

URLconf

b)

URLset

c)

URLlist

d)

myURLs

3.

Where should you put your URLs?

a)

urls.txt

b)

urls.py

c)

urls.xml

d)

urls.json

4.

A ____ function, or ____ for short, is a Python function that takes a web request and returns a web response.

a)

vue

b)

html

c)

display

d)

view

5.

What can be returned in a view function?

a)

error 404

b)

HTML Content

c)

XML Document

d)

All of the above

6.

A ________ contains the static parts of the desired HTML output as well as some special syntax describing how dynamic content will be inserted.

a)

plate

b)

template

c)

html

d)

temp view

7.

What is NOT part of Django's work involved in forms?

a)

preparing and restructuring data to make it ready for rendering

b)

Asking users if they're having a good time

c)

creating HTML forms for the data

d)

receiving and processing submitted forms and data from the client

8.

What does NOT apply in a settings file?

a)

It can assign settings dynamically using normal Python syntax

b)

It doesn’t allow for Python syntax errors

c)

It automatically encrypt credentials assigned here

d)

It can import values from other settings files

9.

The term ___________ describes a Python package that provides some set of features

a)

application

b)

module

c)

package

d)

web page

10.

One of the most powerful parts of Django is the automatic _____ interface

a)

Templates

b)

Admin

c)

Perfect Cell

d)

Model