Flask and FastAPI Fundamentals

Test your understanding of lightweight Python web frameworks.

1. What type of web framework is Flask?
2. Which Python version is the minimum requirement for FastAPI?
3. In Flask, which decorator defines a URL route?
4. FastAPI automatically generates which API documentation tools by default?
5. Which command runs a Flask app via the command line (without app.run())?
6. FastAPI is built on top of which ASGI framework?
7. Select native features of FastAPI.
8. Which Flask extensions handle database interactions?
9. Which are valid response types in Flask?
10. What are advantages of FastAPI over Flask?
11. Flask includes a built-in ORM for database operations.
12. FastAPI can only process asynchronous request handlers.
13. Werkzeug is a dependency of Flask.
14. What does ASGI stand for (FastAPI's underlying protocol)?
15. Name the Flask function used to return JSON responses (without using dictionaries directly).
Answered 0 of 0 — 0 correct