wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Page 1

Total questions: 11

Worksheet time: 6mins

Name
Class
Date
1.

What is Flask?

a)

A database

b)

A Python web framework

c)

A JavaScript library

d)

An operating system

2.

Flask is mainly used to build:

a)

Mobile apps

b)

Desktop software

c)

Web applications

d)

Games

3.

Which command is used to install Flask?

a)

install flask

b)

python flask install

c)

pip install flask

d)

flask install pip

4.

Which component handles user requests in Flask architecture?

a)

Client

b)

Template

c)

Flask App

d)

Static files

5.

HTML files in Flask are stored as:

a)

Static files

b)

Templates

c)

Responses

d)

Modules

6.

Which data type is used to store text in Python?

a)

int

b)

float

c)

bool

d)

str

7.

Which of the following is a list in Python?

a)

("apple", "banana")

b)

{"apple", "banana"}

c)

["apple", "banana"]

d)

apple, banana

8.

Which data type stores key–value pairs?

a)

list

b)

tuple

c)

dict

d)

set

9.

Which keyword is used for multiple conditions?

a)

else

b)

for

c)

elif

d)

while

10.

Which keyword is used to define a function in Python?

a)

function

b)

def

c)

define

d)

fun

11.

What does the return keyword do?

a)

Prints output

b)

Ends program

c)

Returns value from function

d)

Declares variable