Flask MCQ Questions & Answers

Flask MCQs : This section focuses on "Flask" of Python Frameworks. These Multiple Choice Questions (MCQ) should be practiced to improve the Flask skills required for various interviews (campus interviews, walk-in interviews, company interviews), placements, entrance exams and other competitive examinations.

1. Flask is a web development framework created in ___________ language.

A. C
B. Java
C. Python
D. Javascript

View Answer


2. Is the Flask framework open source?

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

View Answer


3. It is released under the ___________ Clause.

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

View Answer


4. How to add the mailing feature in the Flask Application?

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

View Answer


5. WSGI stands for the?

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

View Answer


6. Flask default port is?

A. 2000
B. 3000
C. 4000
D. 5000

View Answer


7. Flask default host is a localhost (127.0.0.1)

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

View Answer


8. Flask is called a?

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

View Answer


9. Which of the following are the benefits of using the Flask framework?

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

View Answer


10. Flask works with most of the RDBMSs, such as?

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

View Answer


11. ______________ is used as a global namespace for holding any data during the application context.

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

View Answer


12. Forms in Flask can be implemented by using an extension called ?

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

View Answer


13. The __________ decorator in Flask is used to bind URL to a function.

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

View Answer


14. Which function takes up the floating point number as argument?

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

View Answer


15. Armin Ronacher created the Flask framework.

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

View Answer


16. The _________ method of request.cookies attribute is used to read a cookie.

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

View Answer


17. We can create an Admin interface in Flask using the Flask-Admin extension.

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

View Answer


18. To release a session variable use __________ method.

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

View Answer


19. To integrate with Flask, we can make use of a Flask extension called Flask-Social.

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

View Answer


20. Which of the following provides SMTP interface to Flask application?

A. Flask Sijax
B. Flask SQLAlchemy
C. Flask WTF
D. Flask Mail

View Answer





Discussion



* You must be logged in to add comment.