WorksheetsPage 1
Total questions: 11
Worksheet time: 6mins
What is Flask?
A database
A Python web framework
A JavaScript library
An operating system
Flask is mainly used to build:
Mobile apps
Desktop software
Web applications
Games
Which command is used to install Flask?
install flask
python flask install
pip install flask
flask install pip
Which component handles user requests in Flask architecture?
Client
Template
Flask App
Static files
HTML files in Flask are stored as:
Static files
Templates
Responses
Modules
Which data type is used to store text in Python?
int
float
bool
str
Which of the following is a list in Python?
("apple", "banana")
{"apple", "banana"}
["apple", "banana"]
apple, banana
Which data type stores key–value pairs?
list
tuple
dict
set
Which keyword is used for multiple conditions?
else
for
elif
while
Which keyword is used to define a function in Python?
function
def
define
fun
What does the return keyword do?
Prints output
Ends program
Returns value from function
Declares variable
