
Flask and Web Basics Quiz

Quiz
•
Instructional Technology
•
University
•
Medium
Kelvin Kipchumba
Used 1+ times
FREE Resource
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.
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.
8.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the command to create a new migration script?
flask db migrate
flask db init
flask db upgrade
flask db revision
9.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
How would you retrieve a user from the User table by their ID using SQLAlchemy?
User.query.get(id)
User.query.filter_by(id=id).first()
User.query.all(id)
User.filter(id=id)
Similar Resources on Wayground
6 questions
ServiceNow BTS Quiz

Quiz
•
University
7 questions
Kuis migrasi mailbox 365 ke google workspace

Quiz
•
University
10 questions
Fundamentos de JavaScript y DOM

Quiz
•
University
10 questions
PLN Tanjungpandan Mengajar

Quiz
•
12th Grade - University
12 questions
Fundamentos-App

Quiz
•
University
12 questions
Lezione 4

Quiz
•
KG - Professional Dev...
14 questions
HCI L7: Usability and Testing Quiz

Quiz
•
University
10 questions
Checkpoint 2 Review - 12 A

Quiz
•
12th Grade - University
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade