stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Flask Web Development Flashcards | StudBud
Explore
/
Flask Web Development
Flask Web Development
17 terms
·
StudBud Administration
·
89 plays
Test your knowledge on Flask, Jinja2, and template rendering in web development
Flashcards
17 cards
F
Practice quiz
P
Host live
L
Questions
17
Answers
1
Where are static files stored in Flask?
In the css folder
In the static folder
In the app folder
In the templates folder
2
True or false: Templates are only for static content.
True
False
3
What does the content block do?
Links to static files
Holds unique content
Creates new templates
Defines page layout
4
How does template inheritance work?
By copying templates
By extending base templates
By merging files
By creating new templates
5
What does Jinja2 help with?
Creating static files
Database management
User authentication
Dynamic content generation
6
True or false: Flask automatically finds static files.
True
False
7
True or false: Template inheritance allows code reuse.
True
False
8
What is a placeholder in Jinja2?
A CSS class
A static text
A dynamic variable
An HTML tag
9
Which function renders templates in Flask?
display_template()
create_template()
render_template()
load_template()
10
True or false: CSS is a type of static file.
True
False
11
What is an example of a static file?
JavaScript file
HTML file
Database file
Dynamic image
12
What is the purpose of a base template?
To handle user sessions
To manage databases
To create static pages
To define common elements
13
What is the role of the header in a template?
To display content
To link static files
To define page title
To provide navigation
14
What analogy is used for templates?
A thali meal
Writing a letter
Cooking a recipe
Tailor-made clothes
15
True or false: You can only use one template in Flask.
False
True
16
What is the main benefit of using templates?
Faster coding
Better database management
Easier debugging
More static pages
17
What does the url_for() function do?
Creates new routes
Generates HTML templates
Fetches data from APIs
Links to static files