Skip to content

Quiz

1. State True or False. A view always can only render HTML Page.

a. True
b. False
Answer b. False
Explanation: It can return HTML, Audio, Video, File and various other responses.

2. State True or False. Django Template Engine is installed by default.

a. True
b. False
Answer b. True

3. Which is true about STATIC_URL ?

a. The static_url is used to specify the URL prefix that is used to access static files.
b. The static_url is the directory on your server where the static files are collected
c. The static_url is a list of directories where Django look for static files.
d. None of the above
Answer a. The static_url is used to specify the URL prefix that is used to access static files.

4. Which is true about STATIC_ROOT ?

a. The static_root is used to specify the URL prefix that is used to access static files.
b. The static_root is the directory on your server where the static files are collected
c. The static_root is a list of directories where Django look for static files.
d. None of the above
Answer b. The static_root is the directory on your server where the static files are collected

5. Which is true about staticfiles_dirs ?

a. The staticfiles_dirs is a list of directories where Django look for static files.
b. The staticfiles_dirs is the directory on your server where the static files are collected
c. The staticfiles_dirs is used to specify the URL prefix that is used to access static files.
d. None of the above
Answer a. The staticfiles_dirs is a list of directories where Django look for static files.