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.
Correct Answer : Option (A) : April 1, 2010
Correct Answer : Option (C) : Python
Explanation : Flask is a web development framework created in Python language.
Correct Answer : Option (B) : Web framework
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.
Correct Answer : Option (A) : TRUE
Explanation : Yes, the Flask framework is open-source.
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.
Correct Answer : Option (C) : microframework
Explanation : Flask is called a microframework because Flask only provides core features such as request, routing, and blueprints.
Correct Answer : Option (D) : BSD-3
Explanation : It is released under the BSD-3 Clause New or Revised License.
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
Correct Answer : Option (A) : Flask-WTF
Explanation : Forms in Flask can be implemented by using an extension called Flask-WTF.
Correct Answer : Option (A) : route()
Explanation : The route() decorator in Flask is used to bind URL to a function.
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)
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.
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.
Explanation : True, Flask default host is a localhost (127.0.0.1).
Correct Answer : Option (B) : revision()
Explanation : The revision() function takes up the floating point number as argument.
Correct Answer : Option (B) : Flask Mail
Explanation : Flask Mail : provides SMTP interface to Flask application
Correct Answer : Option (C) : pop()
Explanation : To release a session variable use pop() method.
Explanation : All of the above are the benefits of using the Flask framework.
Explanation : True, We can create an Admin interface in Flask using the Flask-Admin extension.
Correct Answer : Option (B) : get()
Explanation : The get() method of request.cookies attribute is used to read a cookie.
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.