Recall & Review
beginner
What is a StringField in Flask-WTF forms?
A StringField is a form field used to accept short text input from the user, like names or titles.
Click to reveal answer
beginner
How does a PasswordField differ from a StringField?
A PasswordField hides the input characters for privacy, typically used for passwords, while StringField shows the text as typed.
Click to reveal answer
beginner
What is the purpose of a BooleanField in Flask forms?
A BooleanField represents a checkbox that can be either checked (True) or unchecked (False).
Click to reveal answer
beginner
Explain the use of SelectField in Flask forms.
SelectField lets users pick one option from a dropdown list of choices.
Click to reveal answer
beginner
What kind of input does a TextAreaField accept?
TextAreaField accepts multi-line text input, useful for comments or messages.
Click to reveal answer
Which Flask-WTF field type is best for a user to enter their email address?
✗ Incorrect
Email addresses are short text, so StringField is suitable.
Which field type hides the input characters as you type?
✗ Incorrect
PasswordField hides input for privacy.
If you want users to select one option from a list, which field should you use?
✗ Incorrect
SelectField provides a dropdown list for single choice.
Which field type is best for a user to write a long message?
✗ Incorrect
TextAreaField allows multi-line text input.
What does a BooleanField represent in a form?
✗ Incorrect
BooleanField is a checkbox that can be checked or unchecked.
List and describe five common Flask-WTF form field types and their typical uses.
Think about different ways users enter data in forms.
You got /5 concepts.
Explain when you would use a SelectField instead of a StringField in a Flask form.
Consider user choices and input control.
You got /4 concepts.