Flask Beginner Quiz
Master Flask basics including routing, templates, forms, and request handling
Start the quizSample questions from this quiz
A preview of the style and depth. Try each one, then reveal the answer — or skip straight to the timed quiz.
1. What is Flask?
- A database framework
- A testing library
- Lightweight Python web framework
- A JavaScript framework
Show answer
Answer: Lightweight Python web framework. Flask is a lightweight Python web framework created by Armin Ronacher. It's a micro-framework that provides essential tools without forcing specific patterns.
2. Why is Flask called a micro-framework?
- Only for small apps
- It's small in size
- Limited functionality
- Provides core features, extensible via extensions
Show answer
Answer: Provides core features, extensible via extensions. Flask is "micro" because it keeps the core simple but extensible. Doesn't include database abstraction, form validation by default - add via extensions.
3. How do you create a Flask app?
- Flask.create_app()
- new Flask()
- app = Flask(__name__)
- app = Flask()
Show answer
Answer: app = Flask(__name__). Create Flask app: app = Flask(__name__). The __name__ parameter helps Flask locate resources. This creates the application instance.
Frequently asked questions
How many questions are in this Flask quiz?+
30 questions, with a 45-minute time limit. Every question includes a written explanation of the correct answer.
Is this Flask quiz free?+
Yes. Every quiz on CodexQuizz is free and needs no account. You only enter a name if you choose to post your score to the leaderboard.
What level is the beginner quiz aimed at?+
Master Flask basics including routing, templates, forms, and request handling
Can I use this to prepare for a Flask interview?+
Yes. The questions cover the topics that come up in Flask technical screens, and the explanations are written so that a wrong answer still teaches you the underlying concept.
Ready to test your Flask?
30 questions, 45 minutes. Free, no sign-up.
Start now