Search Header Logo

Flask and Web Basics Quiz

Authored by Kelvin Kipchumba

Instructional Technology

University

Used 1+ times

Flask and Web Basics Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is Flask?

A lightweight web framework

A full-stack web framework

A database management system

A programming language

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the HTTP protocol do?

It sends requests and receives responses

It stores data on the server

It creates web pages

It manages user sessions

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does a 404 status code indicate?

The resource doesn't exist

The request succeeded

The request is invalid

The server failed to process the request

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a blueprint in Flask?

  • A Blueprint is used to define the main structure of the application, including the layout and design.

A Blueprint in Flask is a way to organize routes and other components into smaller, reusable modules.

  1. Blueprints are used to generate the main database schema automatically.

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What command initializes the migrations folder in Flask?

flask db init

flask db migrate

flask db upgrade

flask db downgrade

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the command 'flask db migrate' do?

flask db upgrade is used to apply the changes from the migration scripts to the database, updating its schema.

flask db upgrade is used to rollback database migrations to the previous version.

flask db upgrade is used to generate new migration scripts.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does 'flask db downgrade' do?

flask db downgrade is used to upgrade the database schema by applying the latest migration.

flask db downgrade is used to create new migration scripts based on changes to the models.

flask db downgrade is used to revert the database schema to a previous version by undoing applied migrations.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?