Flask Web Development

Assess your grasp of Flask’s routing,request handling,and Jinja2 templating.

1. What is the minimal code required to create a basic Flask application?
2. Which HTTP methods can be explicitly specified in a Flask route using the 'methods' parameter?
3. Flask is classified as a 'micro' web framework because it includes built-in database support.
4. What function is used to redirect a user to another route in Flask?
5. Which folder is the default location for Jinja2 templates in a Flask application?
6. Which of the following are valid ways to pass data to a Flask template?
7. Jinja2 is the default templating engine used by Flask.
8. What is the function used to render an HTML template in Flask?
9. What is the common abbreviation for Flask's built-in development server command (run via CLI)?
10. Which decorator is used to define a route in Flask?
11. Which of the following are valid Flask configuration methods?
12. Blueprints in Flask are used to split large applications into smaller, reusable components.
13. What is the default port number for the Flask development server?
14. Name the Flask extension that simplifies user authentication (common name).
15. Which object is used to access form data sent via a POST request in Flask?
16. Which of the following are valid Jinja2 template inheritance blocks?
17. The 'secret_key' configuration is optional for using sessions in Flask.
18. What decorator is used to handle 404 Not Found errors in Flask?
19. Which of the following are Flask extensions for database integration?
20. What is the file extension for Jinja2 template files?
Answered 0 of 0 — 0 correct