What does it mean that Flask is a micro-framework?
Flask is called a micro-framework because it provides the basic tools to build web apps without extra features like database layers or form validation built-in. You add only what you need.
Click to reveal answer
beginner
Name one main advantage of using Flask as a micro-framework.
Flask is simple and flexible, letting you start small and add only the parts you want, making it easy to learn and customize.
Click to reveal answer
intermediate
How does Flask's minimalism help developers?
Because Flask keeps things minimal, developers can understand the whole app easily and have full control over how to build features.
Click to reveal answer
beginner
What kind of projects is Flask especially good for?
Flask is great for small to medium projects or when you want to build a prototype quickly without extra complexity.
Click to reveal answer
intermediate
Why might Flask be preferred over bigger frameworks like Django?
Flask is preferred when you want simplicity, flexibility, and to avoid the extra features and rules that bigger frameworks enforce.
Click to reveal answer
What is a key characteristic of Flask as a micro-framework?
AIt provides only the core essentials and lets you add features as needed.
BIt includes a built-in admin panel and ORM by default.
CIt forces a strict project structure.
DIt is designed only for large enterprise apps.
✗ Incorrect
Flask provides the core essentials and allows developers to add only the features they want.
Which project is Flask best suited for?
ASmall to medium apps or prototypes.
BOnly large, complex enterprise systems.
CMobile app development.
DDesktop software.
✗ Incorrect
Flask is ideal for small to medium apps or quick prototypes due to its simplicity.
Why might a developer choose Flask over Django?
ABecause Flask has more built-in features.
BFor more flexibility and less built-in complexity.
CBecause Flask requires less coding.
DBecause Flask has a built-in database.
✗ Incorrect
Flask offers more flexibility and less built-in complexity compared to Django.
What does Flask NOT include by default?
ARouting for URLs.
BA web server.
CA way to handle requests.
DDatabase tools and form validation.
✗ Incorrect
Flask does not include database tools or form validation by default; you add them if needed.
How does Flask's minimalism benefit beginners?
AIt hides all complexity automatically.
BIt requires no coding at all.
CIt makes it easier to learn by focusing on basics first.
DIt forces use of many tools at once.
✗ Incorrect
Flask's minimalism helps beginners by focusing on core concepts without overwhelming them.
Explain why Flask is called a micro-framework and how that affects your app development.
Think about what Flask gives you by default and what you add yourself.
You got /4 concepts.
Describe scenarios where choosing Flask over a bigger framework like Django makes sense.
Consider project size and complexity.
You got /4 concepts.
Practice
(1/5)
1. Why is Flask called a micro-framework?
easy
A. Because it includes a built-in database and admin panel
B. Because it is designed only for small websites and cannot scale
C. Because it provides only the core features and lets you add extensions as needed
D. Because it requires a lot of setup and configuration before use
Solution
Step 1: Understand the meaning of micro-framework
A micro-framework provides only essential features, avoiding extra built-in tools to keep it simple and lightweight.
Step 2: Relate Flask's design to micro-framework traits
Flask offers core web handling and lets developers add only what they need via extensions, matching the micro-framework idea.
Final Answer:
Because it provides only the core features and lets you add extensions as needed -> Option C
Quick Check:
Micro-framework = core features only [OK]
Hint: Micro means minimal built-in features, add what you want [OK]
Common Mistakes:
Thinking Flask cannot scale for bigger projects
Assuming Flask has many built-in tools like admin panels
Believing Flask requires heavy setup before use
2. Which of the following is the correct way to create a basic Flask app?
easy
A. from flask import Flask
app = Flask(__name__)
@app.route('/')
def home():
return 'Hello World!'