Python: Flask Basics
Flask is Python's most popular microframework — minimal by design, giving you exactly what you need to build a web application without the overhead of a full framework. This quiz covers the core concepts: routing, request handling, Jinja2 templates, and application structure.
Questions test knowledge of defining routes with @app.route(), HTTP methods (GET/POST), accessing request data, rendering templates with Jinja2, returning JSON responses, and using Flask's debug mode during development.
Flask's simplicity makes it ideal for APIs, microservices, and learning web development fundamentals. This quiz checks that you have the core concepts down before building something real.
What This Quiz Covers
- Creating a Flask app: Flask(__name__) and app.run()
- Routing: @app.route() decorator and URL rules
- HTTP methods: GET, POST, and the methods parameter
- Request object: request.args, request.form, request.json
- Jinja2 templates: render_template(), variables, and control flow
- Returning JSON: jsonify() and Response objects
- Debug mode: app.run(debug=True) and automatic reloading
Cletica
Want to create your own quiz?
Build surveys and quizzes, share with anyone, collect responses — free to start.
Try Cletica for free →