stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Flask Forms Flashcards | StudBud
Explore
/
Flask Forms
Flask Forms
16 terms
·
StudBud Administration
·
42 plays
Test your knowledge on Flask forms and their purpose in web development
Flashcards
16 cards
F
Practice quiz
P
Host live
L
Questions
16
Answers
1
What does CSRF protection prevent?
Email spam
Cross-site request forgery
Data loss
Form duplication
2
Which method retrieves form data in Flask?
app.route()
request.form.get()
render_template()
url_for()
3
What is the purpose of forms in Flask?
Store data locally
Display images
Send data to server
Create animations
4
What does 'request.args.get' retrieve?
Form data
JavaScript code
URL parameters
CSS styles
5
True or false: GET method hides data
False
True
6
Which CSS property centers elements?
box-shadow
border-radius
display: flex
background-color
7
What is the default HTTP method for forms?
PUT
DELETE
POST
GET
8
True or false: Flask-WTF simplifies form handling
True
False
9
What is the role of 'render_template'?
Creates CSS styles
Handles form data
Renders HTML templates
Validates email
10
What is the purpose of 'DataRequired' validator?
Formats email
Ensures field is filled
Creates form layout
Generates URL
11
Which method is used for non-sensitive data?
POST
DELETE
GET
PUT
12
True or false: POST method is secure
False
True
13
Which library integrates Flask with WTForms?
Flask-SQLAlchemy
Flask-WTF
Flask-Mail
Flask-RESTful
14
Which method is used for sensitive data?
PUT
POST
GET
DELETE
15
What does 'app.route' define?
CSS styles
JavaScript function
HTML structure
Flask route
16
What does 'url_for' function do?
Generates URL for route
Creates a new form
Sends email notifications
Validates user input