Python Web Development
Python Web Development - Important Points
21. | Which Python module is commonly used for handling asynchronous tasks in web development? |
---|
A. asyncio
B. requests
C. json
D. None of the above
View Answer Discuss Work SpaceAnswer: option a
Explanation:
asyncio is a commonly used Python module for handling asynchronous tasks in web development.
22. | Which Python module is commonly used for working with databases in web development? |
---|
A. sqlite3
B. MySQLdb
C. psycopg2
D. All of the above
View Answer Discuss Work SpaceAnswer: option d
Explanation:
sqlite3, MySQLdb, and psycopg2 are all commonly used Python modules for working with databases in web development.
23. | Which Python web framework is commonly used for building RESTful APIs? |
---|
A. Flask
B. Django
C. Pyramid
D. Bottle
View Answer Discuss Work SpaceAnswer: option b
Explanation:
Django is a popular Python web framework used for building RESTful APIs.
24. | Which Python module is commonly used for parsing XML in web development? |
---|
A. xml.dom
B. xml.sax
C. xml.etree.ElementTree
D. All of the above
View Answer Discuss Work SpaceAnswer: option d
Explanation:
xml.dom, xml.sax, and xml.etree.ElementTree are all commonly used Python modules for parsing XML in web development.
25. | Which Python module is commonly used for working with web authentication and authorization? |
---|
A. Flask-Security
B. Django-Auth
C. Pyramid-Security
D. All of the above
View Answer Discuss Work SpaceAnswer: option d
Explanation:
Flask-Security, Django-Auth, and Pyramid-Security are all commonly used Python modules for working with web authentication and authorization.