Python Web Development
Python Web Development - Important Points
| 16. | Which of the following is NOT a commonly used Python web server? |
|---|
A. Apache HTTP Server
B. Gunicorn
C. Nginx
D. Tomcat
View Answer Discuss Work SpaceAnswer: option d
Explanation:
Tomcat is a Java-based web server, not a Python-based web server. Apache HTTP Server, Gunicorn, and Nginx are all commonly used Python web servers.
| 17. | Which Python module is commonly used for working with dates and times? |
|---|
A. datetime
B. os
C. re
D. None of the above
View Answer Discuss Work SpaceAnswer: option a
Explanation:
The datetime module is commonly used in Python for working with dates and times.
| 18. | Which Python module is commonly used for working with HTML forms? |
|---|
A. Flask-WTF
B. WTForms
C. Django Forms
D. All of the above
View Answer Discuss Work SpaceAnswer: option d
Explanation:
Flask-WTF, WTForms, and Django Forms are all commonly used Python modules for working with HTML forms.
| 19. | Which of the following is NOT a commonly used web development protocol? |
|---|
A. HTTP
B. HTTPS
C. SMTP
D. FTP
View Answer Discuss Work SpaceAnswer: option c
Explanation:
SMTP is a protocol used for sending email, not for web development. HTTP, HTTPS, and FTP are all commonly used web development protocols.
| 20. | Which Python module is commonly used for working with user authentication and authorization? |
|---|
A. Flask-Login
B. Django-Auth
C. Pyramid-Security
D. All of the above
View Answer Discuss Work SpaceAnswer: option a
Explanation:
Flask-Login, Django-Auth, and Pyramid-Security are all commonly used Python modules for working with user authentication and authorization.