Google News
logo
Flask - Quiz(MCQ)
A)
Wes McKinney
B)
Travis Oliphant
C)
Simon Willison
D)
Armin Ronacher

Correct Answer : Option (D) :   Armin Ronacher


Explanation : Armin Ronacher is an Austrian open source software programmer and the creator of the "Flask" web framework for Python.

A)
April 1, 2010
B)
April 1, 2012
C)
April 1, 2014
D)
April 1, 2016

Correct Answer : Option (A) :   April 1, 2010

A)
PHP
B)
Java
C)
Python
D)
Javascript

Correct Answer : Option (C) :   Python


Explanation : Flask is a web development framework created in Python language.

A)
Software
B)
Web framework
C)
Programming Language
D)
None of the above

Correct Answer : Option (B) :   Web framework

A)
Web Server Gateway Interact
B)
Web Server Gateway Interface
C)
Web Static Gateway Interface
D)
Write Server Gateway Interface

Correct Answer : Option (B) :   Web Server Gateway Interface


Explanation : WSGI stands for the Web Server Gateway Interface. It is a Python standard defined in PEP 3333. WSGI is pronounced as “Whiskey.” It is a specification that describes how a web server communicates with a web application.

A)
TRUE
B)
FALSE
C)
Can be true or false
D)
Can not say

Correct Answer : Option (A) :   TRUE


Explanation : Yes, the Flask framework is open-source.

A)
Web Target Engine
B)
Web Transfer Engine
C)
Web Technology Engine
D)
Web Template Engine

Correct Answer : Option (D) :   Web Template Engine


Explanation : Jinja2 is a web template engine which combines a template with a certain data source to render the dynamic web pages.

A)
peraframework
B)
miniframework
C)
microframework
D)
nanoframework

Correct Answer : Option (C) :   microframework


Explanation : Flask is called a microframework because Flask only provides core features such as request, routing, and blueprints.

A)
BSD-0
B)
BSD-1
C)
BSD-2
D)
BSD-3

Correct Answer : Option (D) :   BSD-3


Explanation : It is released under the BSD-3 Clause New or Revised License.

A)
install Flask-Mail
B)
pip install Flask-Mail
C)
pip Flask-Mail
D)
pip install Flask

Correct Answer : Option (B) :   pip install Flask-Mail


Explanation : To send emails, we need to install the Flask-Mail flask extension : pip install Flask-Mail

A)
Flask-WTF
B)
Flask-ATF
C)
Flask-ZIP
D)
Flask-GTM

Correct Answer : Option (A) :   Flask-WTF


Explanation : Forms in Flask can be implemented by using an extension called Flask-WTF.

A)
route()
B)
rend()
C)
read()
D)
write()

Correct Answer : Option (A) :   route()


Explanation : The route() decorator in Flask is used to bind URL to a function.

A)
4208
B)
2050
C)
5000
D)
6060

Correct Answer : Option (C) :   5000


Explanation : By default the Flask application is executed in host = localhost port = 5000 So, if we want to change that configuration, we pass it to the run method app.run (host = "10.100.100.10", port = 9566)

A)
Flask a object
B)
Flask f object
C)
Flask g object
D)
Flask q object

Correct Answer : Option (C) :   Flask g object


Explanation : Flask’s g object is used as a global namespace for holding any data during the application context. g object is not appropriate for storing the data between requests. The letter g, in a sense, stands for global.

A)
SQLite
B)
MySQL
C)
PostgreSQL
D)
All of the above

Correct Answer : Option (D) :   All of the above


Explanation : Flask works with most of the RDBMSs, such as PostgreSQL, SQLite, and MySQL. However, to connect with databases, we must make use of the Flask-SQLAlchemy extension.

A)
TRUE
B)
FALSE
C)
Can be true or false
D)
Can not say

Correct Answer : Option (A) :   TRUE


Explanation : True, Flask default host is a localhost (127.0.0.1).

A)
route()
B)
revision()
C)
reverse()
D)
show_blog()

Correct Answer : Option (B) :   revision()


Explanation : The revision() function takes up the floating point number as argument.

A)
Flask WTF
B)
Flask Mail
C)
Flask SQLAlchemy
D)
None of the above

Correct Answer : Option (B) :   Flask Mail


Explanation : Flask Mail : provides SMTP interface to Flask application

A)
go()
B)
pull()
C)
pop()
D)
explode()

Correct Answer : Option (C) :   pop()


Explanation : To release a session variable use pop() method.

A)
It is WSGI compliant.
B)
It has vast third-party extensions.
C)
It has an inbuilt development server.
D)
All of the above

Correct Answer : Option (D) :   All of the above


Explanation : All of the above are the benefits of using the Flask framework.

A)
TRUE
B)
FALSE
C)
Can be true or false
D)
None of the above

Correct Answer : Option (A) :   TRUE


Explanation : True, We can create an Admin interface in Flask using the Flask-Admin extension.

A)
set()
B)
get()
C)
find()
D)
read()

Correct Answer : Option (B) :   get()


Explanation : The get() method of request.cookies attribute is used to read a cookie.

A)
SQLite
B)
SQLite1
C)
SQLite2
D)
SQLite3

Correct Answer : Option (D) :   SQLite3


Explanation : Flask can make use of the SQLite3 module of the python to create the database web applications. In this section of the tutorial, we will create a CRUD (create - read - update - delete) application.