All Flask quizzes
Intermediate30 questions60 minutes

Flask Intermediate Quiz

Explore SQLAlchemy, authentication, blueprints, error handling, and testing

Start the quiz

Sample 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-SQLAlchemy?

  • Extension integrating SQLAlchemy ORM with Flask
  • SQL toolkit
  • Database extension
  • ORM library
Show answer

Answer: Extension integrating SQLAlchemy ORM with Flask. Flask-SQLAlchemy is extension integrating SQLAlchemy ORM. Simplifies database operations, provides helpful utilities. Install: pip install flask-sqlalchemy.

2. How do you define a model?

  • Create table class
  • Class inheriting from db.Model
  • Define schema
  • Model definition
Show answer

Answer: Class inheriting from db.Model. Define models as classes inheriting from db.Model. Define columns as class attributes: id = db.Column(db.Integer, primary_key=True). Represents database table.

3. What is a migration?

  • Database schema version control
  • Schema change
  • Data transfer
  • Database update
Show answer

Answer: Database schema version control. Migrations are version control for database schema. Track changes over time. Use Flask-Migrate (Alembic wrapper). Run flask db migrate, flask db upgrade.

Frequently asked questions

How many questions are in this Flask quiz?+

30 questions, with a 60-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 intermediate quiz aimed at?+

Explore SQLAlchemy, authentication, blueprints, error handling, and testing

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, 60 minutes. Free, no sign-up.

Start now