wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Flask

Total questions: 11

Worksheet time: 2mins

Name
Class
Date
1.

What is the output of the Program?

a)

HEllo World

b)

Hello World

c)

Page not Found

d)

None of these

2.
a)

ModuleNotFoundError

b)

None of these

c)

Hello World

d)

No error

3.

Primary key is__________.

a)

Nullable

b)

Cannot update

c)

Not unique

d)

None of the above

4.

command to install sqlalchemy

a)

pip install Alchemy

b)

pip3 install Alchemy

c)

pip install flask-sqlalchemy

5.

How data stored in database

a)

In table

b)

In file

c)

Anywhere

6.

Which extension is used to store flask app?

a)

.py

b)

.html

c)

.sql

7.

Jinja tag is written as

a)

{% %}

b)

{{ }}

c)

Both answer are coorect

d)

None of the Above

8.

What is the default ip address for flask

a)

127.1.1.1:5000

b)

127.0.0.1:5000

c)

127.1.0.0:5000

d)

127.0.1.0:5000

9.

Which of the following statements is true?

a)

A class is blueprint for the object.

b)

You can only make a single object from the given class

c)

Both statements are true.

d)

Neither statement is true.

10.

What is the output for the given code

a)

Python

b)

line

c)

Java

d)

Java

Python

11.

What does the __init__() function do in Python?

a)

Initializes the class for use.

b)

This function is called when a new object is instantiated.

c)

Initializes all the data attributes to zero when called.

d)

None of the above.