Python Web Development
Python Web Development - Important Points
6. | Which of the following modules in Python is commonly used for working with databases? |
---|
A. SQLAlchemy
B. PyMongo
C. Django ORM
D. All of the above
View Answer Discuss Work SpaceAnswer: option d
Explanation:
SQLAlchemy, PyMongo, and Django ORM are all commonly used Python modules for working with databases.
7. | Which Python framework is commonly used for building RESTful APIs? |
---|
A. Django
B. Flask
C. Pyramid
D. FastAPI
View Answer Discuss Work SpaceAnswer: option d
Explanation:
FastAPI is a popular Python framework for building RESTful APIs.
8. | Which Python module is commonly used for working with HTML and XML files? |
---|
A. BeautifulSoup
B. Requests
C. PyYAML
D. None of the above
View Answer Discuss Work SpaceAnswer: option a
Explanation:
BeautifulSoup is a commonly used Python module for parsing HTML and XML files.
9. | Which of the following is NOT a commonly used data format for transmitting data over the web? |
---|
A. XML
B. JSON
C. YAML
D. PNG
View Answer Discuss Work SpaceAnswer: option d
Explanation:
PNG is an image format and is not used for transmitting data over the weXML, JSON, and YAML are all commonly used data formats.
10. | Which of the following modules in Python is commonly used for handling regular expressions? |
---|
A. re
B. os
C. datetime
D. None of the above
View Answer Discuss Work SpaceAnswer: option a
Explanation:
The re module is commonly used in Python for handling regular expressions.